@ui-autotools/registry
Advanced tools
Comparing version 3.3.0 to 3.4.0
@@ -18,3 +18,3 @@ "use strict"; | ||
if (!utils_1.isValidComponentName(newCompName)) { | ||
throw new Error('Component names must be alphanumeric.'); | ||
throw new Error('Component names (displayName | name) are allowed to have only alphanumeric characters or dots.'); | ||
} | ||
@@ -21,0 +21,0 @@ if (!this.metadata.components.has(comp)) { |
@@ -9,3 +9,3 @@ "use strict"; | ||
function isValidComponentName(stringToVerify) { | ||
const verificationExpression = /^[a-zA-Z]+$/; // Match only letters | ||
const verificationExpression = /^[a-zA-Z\.]+$/; // Match only letters & dot | ||
return verificationExpression.test(stringToVerify); | ||
@@ -12,0 +12,0 @@ } |
@@ -13,3 +13,3 @@ import { ComponentMetadata } from './component-metadata'; | ||
if (!isValidComponentName(newCompName)) { | ||
throw new Error('Component names must be alphanumeric.'); | ||
throw new Error('Component names (displayName | name) are allowed to have only alphanumeric characters or dots.'); | ||
} | ||
@@ -16,0 +16,0 @@ if (!this.metadata.components.has(comp)) { |
@@ -6,5 +6,5 @@ export function isValidSimulationTitle(stringToVerify) { | ||
export function isValidComponentName(stringToVerify) { | ||
const verificationExpression = /^[a-zA-Z]+$/; // Match only letters | ||
const verificationExpression = /^[a-zA-Z\.]+$/; // Match only letters & dot | ||
return verificationExpression.test(stringToVerify); | ||
} | ||
//# sourceMappingURL=verify-string.js.map |
{ | ||
"name": "@ui-autotools/registry", | ||
"version": "3.3.0", | ||
"version": "3.4.0", | ||
"main": "cjs/index.js", | ||
@@ -37,3 +37,3 @@ "module": "esm/index.js", | ||
}, | ||
"gitHead": "60cb1f3b1b4295749cae336a062d232101e0fb89" | ||
"gitHead": "3081d6ac44da66e09a681f964e8ff2b2ac410b4d" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
46896