Skip to content

Commit

Permalink
replace deprecated substr method
Browse files Browse the repository at this point in the history
  • Loading branch information
idleberg committed Mar 22, 2024
1 parent 08ff247 commit 620d4cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ export async function mapArguments(args: string[], options: Makensis.CompilerOpt

export function objectify(input: string, key: string | null): Makensis.Objectified | string {
if (key === 'version' && input.startsWith('v')) {
input = input.substr(1);
input = input.substring(1);
}

if (key === null) {
Expand Down

0 comments on commit 620d4cd

Please sign in to comment.