Skip to content

Commit 89fb4ba

Browse files
committed
make a minor change in Run function (utility.ts)
1 parent 2796151 commit 89fb4ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utility.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ export function Run(
156156
let res = reg.exec(data);
157157

158158
if (res) {
159-
err = new Error(res[2].substr(0, res[2].length - 1));
159+
err = new Error(res[2].slice(0, -1));
160160
return err;
161161
}
162162
return;

0 commit comments

Comments
 (0)