testaro 46.2.0 → 46.2.1
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/package.json +1 -1
- package/procs/standardize.js +1 -1
package/package.json
CHANGED
package/procs/standardize.js
CHANGED
|
@@ -49,7 +49,7 @@ const getIdentifiers = code => {
|
|
|
49
49
|
// If the substring includes the start tag of an element:
|
|
50
50
|
if (code && typeof code === 'string' && code.length && /<\s*[a-zA-Z]/.test(code)) {
|
|
51
51
|
// Get the first start tag in the substring.
|
|
52
|
-
const startTag = code.replace(/^.*?<(?=[a-zA-Z])/s, '').replace(/[^a-zA-
|
|
52
|
+
const startTag = code.replace(/^.*?<(?=[a-zA-Z])/s, '').replace(/[^a-zA-Z0-9].*$/s, '').trim();
|
|
53
53
|
// If it exists:
|
|
54
54
|
if (startTag && startTag.length) {
|
|
55
55
|
// Get its tag name, upper-cased.
|