@gem-sdk/system 2.0.0-dev.433 → 2.0.0-dev.450
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.
|
@@ -7,7 +7,7 @@ const createContent = (content)=>{
|
|
|
7
7
|
return '';
|
|
8
8
|
}
|
|
9
9
|
// Regex to match {{}} pattern with only letters inside, e.g., {{Hello}}
|
|
10
|
-
const invalidPattern = /\{\{[A-
|
|
10
|
+
const invalidPattern = /\{\{(?:[A-Z]+|[a-z]+)\}\}/g;
|
|
11
11
|
// Check if content contains any invalid patterns
|
|
12
12
|
if (invalidPattern.test(content)) {
|
|
13
13
|
console.error('Invalid content format: "{{}}" placeholders must not contain only letters, e.g., "{{Hello}}".');
|
|
@@ -5,7 +5,7 @@ const createContent = (content)=>{
|
|
|
5
5
|
return '';
|
|
6
6
|
}
|
|
7
7
|
// Regex to match {{}} pattern with only letters inside, e.g., {{Hello}}
|
|
8
|
-
const invalidPattern = /\{\{[A-
|
|
8
|
+
const invalidPattern = /\{\{(?:[A-Z]+|[a-z]+)\}\}/g;
|
|
9
9
|
// Check if content contains any invalid patterns
|
|
10
10
|
if (invalidPattern.test(content)) {
|
|
11
11
|
console.error('Invalid content format: "{{}}" placeholders must not contain only letters, e.g., "{{Hello}}".');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gem-sdk/system",
|
|
3
|
-
"version": "2.0.0-dev.
|
|
3
|
+
"version": "2.0.0-dev.450",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "dist/cjs/index.js",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {},
|
|
23
23
|
"devDependencies": {
|
|
24
|
-
"@gem-sdk/core": "2.0.0-dev.
|
|
24
|
+
"@gem-sdk/core": "2.0.0-dev.435"
|
|
25
25
|
},
|
|
26
26
|
"module": "dist/esm/index.js",
|
|
27
27
|
"types": "dist/types/index.d.ts",
|