mirror of
https://github.com/home-assistant/frontend.git
synced 2025-08-01 13:37:47 +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 = "";
|
||||
for (const match of matches) {
|
||||
actualWord += word.substring(pos, match.start);
|
||||
actualWord += `${left}${word.substring(match.start, match.end)}${right}`;
|
||||
actualWord +=
|
||||
word.substring(pos, match.start) +
|
||||
left +
|
||||
word.substring(match.start, match.end) +
|
||||
right;
|
||||
pos = match.end;
|
||||
}
|
||||
actualWord += word.substring(pos);
|
||||
|
Loading…
x
Reference in New Issue
Block a user