diff --git a/.gitattributes b/.gitattributes index b361805a..e7b5654c 100644 --- a/.gitattributes +++ b/.gitattributes @@ -7,6 +7,7 @@ img/browserstack.svg export-ignore js/.istanbul.yml export-ignore js/.nycrc.yml export-ignore js/common.js export-ignore +js/eslint.config.js export-ignore js/test/ export-ignore .codeclimate.yml export-ignore .csslintrc export-ignore @@ -24,7 +25,6 @@ js/test/ export-ignore .vscode export-ignore codacy-analysis.yml export-ignore crowdin.yml export-ignore -js/eslint.config.js export-ignore BADGES.md export-ignore CODE_OF_CONDUCT.md export-ignore Makefile export-ignore diff --git a/js/test/Helper.js b/js/test/Helper.js index a11fa1c5..3cc1d1c5 100644 --- a/js/test/Helper.js +++ b/js/test/Helper.js @@ -83,7 +83,7 @@ describe('Helper', function () { 'string', function (content) { // eslint-disable-next-line no-control-regex - content = content.replace(/\r|\f/g, '\n').replace(/\u0000/g, '').replace(/\u000b/g, ''); + content = content.replace(/\r|\f/g, '\n').replace(/\u0000|\u000b/g, ''); let clean = jsdom(); $('body').html('
'); let e = $('#foo'); @@ -102,7 +102,7 @@ describe('Helper', function () { 'string', function (prefix, url, fragment, postfix) { // eslint-disable-next-line no-control-regex - prefix = prefix.replace(/\r|\f/g, '\n').replace(/\u0000/g, '').replace(/\u000b/g, ''); + prefix = prefix.replace(/\r|\f/g, '\n').replace(/\u0000|\u000b/g, ''); // eslint-disable-next-line no-control-regex postfix = ' ' + postfix.replace(/\r/g, '\n').replace(/\u0000/g, ''); url.fragment = fragment.join(''); @@ -136,7 +136,7 @@ describe('Helper', function () { 'string', function (prefix, query, postfix) { // eslint-disable-next-line no-control-regex - prefix = prefix.replace(/\r|\f/g, '\n').replace(/\u0000/g, '').replace(/\u000b/g, ''); + prefix = prefix.replace(/\r|\f/g, '\n').replace(/\u0000|\u000b/g, ''); // eslint-disable-next-line no-control-regex postfix = ' ' + postfix.replace(/\r/g, '\n').replace(/\u0000/g, ''); let url = 'magnet:?' + query.join('').replace(/^&+|&+$/gm, ''),