Skip to content

Commit

Permalink
refactor: replace deprecated String.prototype.substr() (#1036)
Browse files Browse the repository at this point in the history
  • Loading branch information
CommanderRoot committed Mar 17, 2022
1 parent c62dd2c commit bbb3cf2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/helpers/readAsset.js
Expand Up @@ -10,7 +10,7 @@ export default (asset, compiler, stats) => {
const queryStringIdx = targetFile.indexOf("?");

if (queryStringIdx >= 0) {
targetFile = targetFile.substr(0, queryStringIdx);
targetFile = targetFile.slice(0, queryStringIdx);
}

try {
Expand Down

0 comments on commit bbb3cf2

Please sign in to comment.