Исправил сдвиг пометки паттерна на один символ

This commit is contained in:
saber-nyan 2020-03-09 18:44:16 +03:00
parent 28dec5a8fb
commit fb72769737
No known key found for this signature in database
GPG Key ID: 7B069E9C295E6B4A

View File

@ -108,7 +108,7 @@
raw = raw.substring(0, positionStart) + firstTag + raw.substring(positionStart);
offset += firstTag.length;
const positionEnd = match.endPosition + offset;
const positionEnd = match.endPosition + offset + 1;
raw = raw.substring(0, positionEnd) + secondTag + raw.substring(positionEnd);
offset += secondTag.length;
});