@cloudcare/browser-core 1.0.19 → 1.0.20
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/cjs/helper/tools.js +1 -1
- package/esm/helper/tools.js +1 -1
- package/package.json +2 -2
- package/src/helper/tools.js +1 -1
package/cjs/helper/tools.js
CHANGED
|
@@ -720,7 +720,7 @@ function UUID(placeholder) {
|
|
|
720
720
|
|
|
721
721
|
function replaceNumberCharByPath(path) {
|
|
722
722
|
if (path) {
|
|
723
|
-
return path.replace(/\/([^\/]*)\d([^\/]*)/g, '/?');
|
|
723
|
+
return path.replace(/\/([^\/]*)\d([^\/]*)/g, '/?').replace(/\/$/g, '');
|
|
724
724
|
} else {
|
|
725
725
|
return '';
|
|
726
726
|
}
|
package/esm/helper/tools.js
CHANGED
|
@@ -543,7 +543,7 @@ export function UUID(placeholder) {
|
|
|
543
543
|
|
|
544
544
|
export function replaceNumberCharByPath(path) {
|
|
545
545
|
if (path) {
|
|
546
|
-
return path.replace(/\/([^\/]*)\d([^\/]*)/g, '/?');
|
|
546
|
+
return path.replace(/\/([^\/]*)\d([^\/]*)/g, '/?').replace(/\/$/g, '');
|
|
547
547
|
} else {
|
|
548
548
|
return '';
|
|
549
549
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudcare/browser-core",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.20",
|
|
4
4
|
"main": "cjs/index.js",
|
|
5
5
|
"module": "esm/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
"author": "dataflux",
|
|
21
21
|
"license": "MIT",
|
|
22
22
|
"description": "DataFlux RUM Web 端数据指标监控",
|
|
23
|
-
"gitHead": "
|
|
23
|
+
"gitHead": "a80f418bef92d7c86b3965fee63e6dc11f11b9e9"
|
|
24
24
|
}
|
package/src/helper/tools.js
CHANGED
|
@@ -536,7 +536,7 @@ export function UUID(placeholder) {
|
|
|
536
536
|
// 替换url包含数字的路由
|
|
537
537
|
export function replaceNumberCharByPath(path) {
|
|
538
538
|
if (path) {
|
|
539
|
-
return path.replace(/\/([^\/]*)\d([^\/]*)/g, '/?')
|
|
539
|
+
return path.replace(/\/([^\/]*)\d([^\/]*)/g, '/?').replace(/\/$/g, '')
|
|
540
540
|
} else {
|
|
541
541
|
return ''
|
|
542
542
|
}
|