validate-element-name
Advanced tools
Comparing version 0.6.0 to 0.7.0
@@ -20,2 +20,6 @@ 'use strict'; | ||
if (name.toLowerCase() !== name) { | ||
return 'Custom element names should be lowercase.'; | ||
} | ||
if (name.indexOf('-') === -1) { | ||
@@ -60,6 +64,2 @@ return 'Custom element names must contain a hyphen. Example: unicorn-cake'; | ||
if (name.toLowerCase() !== name) { | ||
return 'Custom element names should be lowercase.'; | ||
} | ||
if (/^[^a-z]/i.test(name)) { | ||
@@ -66,0 +66,0 @@ return 'This element name is only valid in XHTML, not in HTML. First character should be in the range a-z.'; |
{ | ||
"name": "validate-element-name", | ||
"version": "0.6.0", | ||
"version": "0.7.0", | ||
"description": "Validate the name of a custom element", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
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