testaro 5.17.2 → 5.17.3
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/tests/titledEl.js +3 -1
package/package.json
CHANGED
package/tests/titledEl.js
CHANGED
|
@@ -10,7 +10,9 @@ exports.reporter = async (page, withItems) => {
|
|
|
10
10
|
badTitleElements => {
|
|
11
11
|
// FUNCTION DEFINITION START
|
|
12
12
|
// Returns a space-minimized copy of a string.
|
|
13
|
-
const compact = string => string
|
|
13
|
+
const compact = string => string
|
|
14
|
+
? string.replace(/[\t\n]/g, '').replace(/\s{2,}/g, ' ').trim()
|
|
15
|
+
: '';
|
|
14
16
|
// FUNCTION DEFINITION END
|
|
15
17
|
return badTitleElements.map(element => ({
|
|
16
18
|
tagName: element.tagName,
|