mirror of
https://github.com/home-assistant/frontend.git
synced 2025-08-02 14:07:55 +00:00
minor syntax improvement for delimiter surrounding
This commit is contained in:
parent
7198129578
commit
fdf1eae882
@ -132,8 +132,11 @@ const _decorateMatch: (
|
|||||||
|
|
||||||
let actualWord = "";
|
let actualWord = "";
|
||||||
for (const match of matches) {
|
for (const match of matches) {
|
||||||
actualWord += word.substring(pos, match.start);
|
actualWord +=
|
||||||
actualWord += `${left}${word.substring(match.start, match.end)}${right}`;
|
word.substring(pos, match.start) +
|
||||||
|
left +
|
||||||
|
word.substring(match.start, match.end) +
|
||||||
|
right;
|
||||||
pos = match.end;
|
pos = match.end;
|
||||||
}
|
}
|
||||||
actualWord += word.substring(pos);
|
actualWord += word.substring(pos);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user