Correctly display whitespace characters in search error
This commit is contained in:
parent
d1a76a9f50
commit
4f0a9124bd
1 changed files with 1 additions and 1 deletions
|
@ -2192,7 +2192,7 @@ function initSearch(rawSearchIndex) {
|
||||||
error.forEach((value, index) => {
|
error.forEach((value, index) => {
|
||||||
value = value.split("<").join("<").split(">").join(">");
|
value = value.split("<").join("<").split(">").join(">");
|
||||||
if (index % 2 !== 0) {
|
if (index % 2 !== 0) {
|
||||||
error[index] = `<code>${value}</code>`;
|
error[index] = `<code>${value.replaceAll(" ", " ")}</code>`;
|
||||||
} else {
|
} else {
|
||||||
error[index] = value;
|
error[index] = value;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue