From a762462a4d07b09707b4e483a0cdd15e37d8ce8e Mon Sep 17 00:00:00 2001 From: Cosmin Popovici Date: Wed, 10 Jan 2024 13:48:16 +0200 Subject: [PATCH] test: fix unicorn/prefer-string-replace-all --- test/test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test.js b/test/test.js index bef8b6a..34013c7 100644 --- a/test/test.js +++ b/test/test.js @@ -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)])