Skip to content

Commit

Permalink
test: fix unicorn/prefer-string-replace-all
Browse files Browse the repository at this point in the history
  • Loading branch information
cossssmin committed Jan 10, 2024
1 parent 735d0f6 commit a762462
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const expected = file => readFileSync(path.join(__dirname, 'expected', `${file}.

// eslint-disable-next-line
const error = (name, options, cb) => posthtml([plugin(options)]).process(fixture(name)).catch(cb)
const clean = html => html.replace(/[^\S\r\n]+$/gm, '').trim()
const clean = html => html.replaceAll(/[^\S\r\n]+$/gm, '').trim()

const process = (t, name, options, log = false) => {
return posthtml([plugin(options)])
Expand Down

0 comments on commit a762462

Please sign in to comment.