testaro 69.0.3 → 69.1.0
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/catalog.js +5 -2
package/package.json
CHANGED
package/procs/catalog.js
CHANGED
|
@@ -110,8 +110,11 @@ exports.getCatalog = async report => {
|
|
|
110
110
|
) {
|
|
111
111
|
// For each element that has it:
|
|
112
112
|
textElementIndexes.forEach(index => {
|
|
113
|
-
// If it is not in the head:
|
|
114
|
-
if (
|
|
113
|
+
// If it is not in the head, a script, a style, or a noscript element:
|
|
114
|
+
if (
|
|
115
|
+
! ['/head[1]', '/script[', '/style[', '/noscript[']
|
|
116
|
+
.some(excluder => cat.element[index].pathID.includes(excluder))
|
|
117
|
+
) {
|
|
115
118
|
// Mark it as linkable in the element data in the catalog.
|
|
116
119
|
cat.element[index].textLinkable = true;
|
|
117
120
|
}
|