Fix extra whitespace in titles (again)
This commit is contained in:
parent
2aaff02db8
commit
ab093cb232
1 changed files with 1 additions and 1 deletions
|
|
@ -662,7 +662,7 @@ function setupTruncatedElementTitles() {
|
|||
for (let i = 0; i < elements.length; i++) {
|
||||
const element = elements[i];
|
||||
if (element.getAttribute("title") === null)
|
||||
element.title = element.innerText.trim().replace(/\s{2,}/, " ");
|
||||
element.title = element.innerText.trim().replace(/\s+/g, " ");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue