mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2025-11-28 10:10:37 -05:00
improve readability
This commit is contained in:
parent
70cb1cbc79
commit
0d052d8ddb
2 changed files with 4 additions and 4 deletions
2
.gitattributes
vendored
2
.gitattributes
vendored
|
|
@ -7,6 +7,7 @@ img/browserstack.svg export-ignore
|
||||||
js/.istanbul.yml export-ignore
|
js/.istanbul.yml export-ignore
|
||||||
js/.nycrc.yml export-ignore
|
js/.nycrc.yml export-ignore
|
||||||
js/common.js export-ignore
|
js/common.js export-ignore
|
||||||
|
js/eslint.config.js export-ignore
|
||||||
js/test/ export-ignore
|
js/test/ export-ignore
|
||||||
.codeclimate.yml export-ignore
|
.codeclimate.yml export-ignore
|
||||||
.csslintrc export-ignore
|
.csslintrc export-ignore
|
||||||
|
|
@ -24,7 +25,6 @@ js/test/ export-ignore
|
||||||
.vscode export-ignore
|
.vscode export-ignore
|
||||||
codacy-analysis.yml export-ignore
|
codacy-analysis.yml export-ignore
|
||||||
crowdin.yml export-ignore
|
crowdin.yml export-ignore
|
||||||
js/eslint.config.js export-ignore
|
|
||||||
BADGES.md export-ignore
|
BADGES.md export-ignore
|
||||||
CODE_OF_CONDUCT.md export-ignore
|
CODE_OF_CONDUCT.md export-ignore
|
||||||
Makefile export-ignore
|
Makefile export-ignore
|
||||||
|
|
|
||||||
|
|
@ -83,7 +83,7 @@ describe('Helper', function () {
|
||||||
'string',
|
'string',
|
||||||
function (content) {
|
function (content) {
|
||||||
// eslint-disable-next-line no-control-regex
|
// 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();
|
let clean = jsdom();
|
||||||
$('body').html('<div id="foo"></div>');
|
$('body').html('<div id="foo"></div>');
|
||||||
let e = $('#foo');
|
let e = $('#foo');
|
||||||
|
|
@ -102,7 +102,7 @@ describe('Helper', function () {
|
||||||
'string',
|
'string',
|
||||||
function (prefix, url, fragment, postfix) {
|
function (prefix, url, fragment, postfix) {
|
||||||
// eslint-disable-next-line no-control-regex
|
// 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
|
// eslint-disable-next-line no-control-regex
|
||||||
postfix = ' ' + postfix.replace(/\r/g, '\n').replace(/\u0000/g, '');
|
postfix = ' ' + postfix.replace(/\r/g, '\n').replace(/\u0000/g, '');
|
||||||
url.fragment = fragment.join('');
|
url.fragment = fragment.join('');
|
||||||
|
|
@ -136,7 +136,7 @@ describe('Helper', function () {
|
||||||
'string',
|
'string',
|
||||||
function (prefix, query, postfix) {
|
function (prefix, query, postfix) {
|
||||||
// eslint-disable-next-line no-control-regex
|
// 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
|
// eslint-disable-next-line no-control-regex
|
||||||
postfix = ' ' + postfix.replace(/\r/g, '\n').replace(/\u0000/g, '');
|
postfix = ' ' + postfix.replace(/\r/g, '\n').replace(/\u0000/g, '');
|
||||||
let url = 'magnet:?' + query.join('').replace(/^&+|&+$/gm, ''),
|
let url = 'magnet:?' + query.join('').replace(/^&+|&+$/gm, ''),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue