Skip to content
This repository was archived by the owner on Apr 28, 2025. It is now read-only.

Commit 183f619

Browse files
refactor: replace deprecated String.prototype.substr() (#65)
1 parent 653227d commit 183f619

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/helpers/readAsset.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export default (asset, compiler, stats) => {
1010
const queryStringIdx = targetFile.indexOf("?");
1111

1212
if (queryStringIdx >= 0) {
13-
targetFile = targetFile.substr(0, queryStringIdx);
13+
targetFile = targetFile.slice(0, queryStringIdx);
1414
}
1515

1616
try {

0 commit comments

Comments
 (0)