minor syntax improvement for delimiter surrounding

This commit is contained in:
Donnie 2021-04-20 11:41:43 -07:00
parent 7198129578
commit fdf1eae882

View File

@ -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);