@esri/solution-common 6.6.1-next.54 → 6.6.1-next.56
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.
|
@@ -461,6 +461,9 @@ function setNamesAndTitles(templates) {
|
|
|
461
461
|
let baseName = t.item.name || t.item.title;
|
|
462
462
|
// If the name already contains a GUID remove it
|
|
463
463
|
baseName = baseName.replace(/_[0-9A-F]{32}/gi, "");
|
|
464
|
+
// Replace characters that are not allowed in a feature service name with "_"
|
|
465
|
+
// Disallowed: '#', '%', '&', '"', '\', '/', '+', '?', ':', '*', '<', '>', ' ', '\t'
|
|
466
|
+
baseName = baseName.replace(/[#%&"\\/+?:*<> \t]/g, "_");
|
|
464
467
|
// The name length limit is 98
|
|
465
468
|
// Limit the baseName to 50 characters before the _<guid>
|
|
466
469
|
// If the baseName includes '{{params' it is likely being used in a template replacement, so do not truncate.
|
|
@@ -443,6 +443,9 @@ export function setNamesAndTitles(templates) {
|
|
|
443
443
|
let baseName = t.item.name || t.item.title;
|
|
444
444
|
// If the name already contains a GUID remove it
|
|
445
445
|
baseName = baseName.replace(/_[0-9A-F]{32}/gi, "");
|
|
446
|
+
// Replace characters that are not allowed in a feature service name with "_"
|
|
447
|
+
// Disallowed: '#', '%', '&', '"', '\', '/', '+', '?', ':', '*', '<', '>', ' ', '\t'
|
|
448
|
+
baseName = baseName.replace(/[#%&"\\/+?:*<> \t]/g, "_");
|
|
446
449
|
// The name length limit is 98
|
|
447
450
|
// Limit the baseName to 50 characters before the _<guid>
|
|
448
451
|
// If the baseName includes '{{params' it is likely being used in a template replacement, so do not truncate.
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
Built
|
|
1
|
+
Built 06/02/2026 20:42:56.81
|
|
2
2
|
develop
|
|
3
|
-
commit
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
commit 7f58ab2c3a5effbd842dbf3bef89bf96e1090fd9
|
|
4
|
+
Merge: 0c2f0655b 776c77448
|
|
5
|
+
Author: John Hauck <jhauck@esri.com>
|
|
6
|
+
Date: Tue Jun 2 14:58:25 2026 -0600
|
|
6
7
|
|
|
7
|
-
|
|
8
|
+
Merge pull request #1587 from Esri/replace-characters
|
|
9
|
+
|
|
10
|
+
remove unsupported chars
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@esri/solution-common",
|
|
3
|
-
"version": "6.6.1-next.
|
|
3
|
+
"version": "6.6.1-next.56",
|
|
4
4
|
"description": "Provides general helper functions for @esri/solution.js.",
|
|
5
5
|
"main": "dist/cjs/index.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -96,5 +96,5 @@
|
|
|
96
96
|
"esri",
|
|
97
97
|
"ES6"
|
|
98
98
|
],
|
|
99
|
-
"gitHead": "
|
|
99
|
+
"gitHead": "7f58ab2c3a5effbd842dbf3bef89bf96e1090fd9"
|
|
100
100
|
}
|