Skip to content

Commit 1966c8c

Browse files
author
Florian Breisch
committed
Replcae .substring() by .slice()
1 parent bd158b2 commit 1966c8c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

util.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ exports.removeTestModifier = function (params) {
7878
while (source.charAt(dotPosition) !== '.') {
7979
dotPosition -= 1;
8080
}
81-
let snippet = source.substring(dotPosition, range[1]);
81+
let snippet = source.slice(dotPosition, range[1]);
8282
snippet = snippet.replace(replacementRegExp, '');
8383
return [[dotPosition, range[1]], snippet];
8484
};

0 commit comments

Comments
 (0)