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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "testaro",
3
- "version": "46.2.0",
3
+ "version": "46.2.1",
4
4
  "description": "Run 1000 web accessibility tests from 10 tools and get a standardized report",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -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-Z].*$/gs, '').trim();
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.