Patch: string formatting

This commit is contained in:
Niall 2024-08-23 21:10:03 +00:00
parent 5cf7f823e6
commit 10865d8a24

View file

@ -47,7 +47,7 @@ class InsertDelimiter extends Operation {
return "Invalid interval: must be a positive integer."; return "Invalid interval: must be a positive integer.";
} }
return input.match(new RegExp(`.{1,${parseInt(args[0])}}`, 'g')).join(args[1]); return input.match(new RegExp(`.{1,${parseInt(args[0])}}`, "g")).join(args[1]);
} }
} }