mirror of
https://github.com/glanceapp/glance.git
synced 2025-06-20 18:07:59 +02:00
Fix extra whitespace in titles (again)
This commit is contained in:
parent
2aaff02db8
commit
ab093cb232
@ -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…
x
Reference in New Issue
Block a user