Replace all instead of just replace
This commit is contained in:
parent
9c3dedad76
commit
f11c8db6d2
1 changed files with 29 additions and 7 deletions
|
|
@ -14,7 +14,7 @@ export function positionToLineAndColumn(
|
|||
throw new Error("Position cannot be negative");
|
||||
}
|
||||
|
||||
text = text.replace("\r", "");
|
||||
text = text.replaceAll("\r", "");
|
||||
|
||||
if (
|
||||
position >
|
||||
|
|
|
|||
Loading…
Reference in a new issue