@koine/utils 2.0.0-beta.196 → 2.0.0-beta.198
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/normaliseUrl.cjs.js
CHANGED
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var removeTrailingSlash = require('./removeTrailingSlash.cjs.js');
|
|
6
6
|
|
|
7
|
-
let normaliseUrl=(
|
|
7
|
+
let r=/(:\/\/)|(\/)+/g;let normaliseUrl=(l="")=>removeTrailingSlash.removeTrailingSlash(l.replace(r,"$1$2"));
|
|
8
8
|
|
|
9
9
|
exports.default = normaliseUrl;
|
|
10
10
|
exports.normaliseUrl = normaliseUrl;
|
package/normaliseUrl.esm.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { removeTrailingSlash } from './removeTrailingSlash.esm.js';
|
|
2
2
|
|
|
3
|
-
let normaliseUrl=(
|
|
3
|
+
let r=/(:\/\/)|(\/)+/g;let normaliseUrl=(l="")=>removeTrailingSlash(l.replace(r,"$1$2"));
|
|
4
4
|
|
|
5
5
|
export { normaliseUrl as default, normaliseUrl };
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var removeTrailingSlash = require('./removeTrailingSlash.cjs.js');
|
|
6
6
|
|
|
7
|
-
let normaliseUrlPathname=(
|
|
7
|
+
let r=/\/+/g;let normaliseUrlPathname=(a="")=>removeTrailingSlash.removeTrailingSlash(a.replace(r,"/"));
|
|
8
8
|
|
|
9
9
|
exports.default = normaliseUrlPathname;
|
|
10
10
|
exports.normaliseUrlPathname = normaliseUrlPathname;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { removeTrailingSlash } from './removeTrailingSlash.esm.js';
|
|
2
2
|
|
|
3
|
-
let normaliseUrlPathname=(
|
|
3
|
+
let r=/\/+/g;let normaliseUrlPathname=(a="")=>removeTrailingSlash(a.replace(r,"/"));
|
|
4
4
|
|
|
5
5
|
export { normaliseUrlPathname as default, normaliseUrlPathname };
|
package/package.json
CHANGED