wmakeev/moysklad

View on GitHub
src/tools/normalizeUrl.js

Summary

Maintainability
A
0 mins
Test Coverage
A
100%

Replace 'use·strict' with "use·strict";
Open

'use strict'
Severity: Minor
Found in src/tools/normalizeUrl.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Replace '').replace(URI_EXTRA_SLASH_REGEX,·'$1') with "").replace(URI_EXTRA_SLASH_REGEX,·"$1");
Open

  return url.replace(TRIM_SLASH, '').replace(URI_EXTRA_SLASH_REGEX, '$1')
Severity: Minor
Found in src/tools/normalizeUrl.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Insert ;
Open

}
Severity: Minor
Found in src/tools/normalizeUrl.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Insert ;
Open

const URI_EXTRA_SLASH_REGEX = /([^:]\/)\/+/g
Severity: Minor
Found in src/tools/normalizeUrl.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Insert ;
Open

const TRIM_SLASH = /^\/+|\/+$/g
Severity: Minor
Found in src/tools/normalizeUrl.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

There are no issues that match your filters.

Category
Status