Fixed offset issues.
This commit is contained in:
parent
b19490e367
commit
d89553da23
1 changed files with 3 additions and 1 deletions
|
@ -275,8 +275,10 @@ Umi.UI.Messages = (function() {
|
|||
while(!text.endsWith('/') && /\p{P}$/u.test(text))
|
||||
text = text.substring(0, text.length - 1);
|
||||
|
||||
if(text.length < part.length)
|
||||
if(text.length < part.length) {
|
||||
url = new URL(text);
|
||||
offset += part.length - text.length;
|
||||
}
|
||||
|
||||
const replaceNode = childNode;
|
||||
childNode = replaceNode.splitText(text.length);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue