diff options
author | Ofek <ofekshilon@gmail.com> | 2024-03-10 10:04:29 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-10 10:04:29 +0200 |
commit | 8dd09d1c1f0e44db48d6fa42083a42377dd572fe (patch) | |
tree | 55daf629e22c7d2472851ef54119f070c91bcf51 /lib/compilers/argument-parsers.ts | |
parent | 1764c7c3874ba6e8a30ee4fe2c6e1812d442c748 (diff) | |
download | compiler-explorer-8dd09d1c1f0e44db48d6fa42083a42377dd572fe.tar.gz compiler-explorer-8dd09d1c1f0e44db48d6fa42083a42377dd572fe.zip |
Replace the deprecated `substr` with `substring` (#6236)gh-10941
Just some minor homekeeping.
Diffstat (limited to 'lib/compilers/argument-parsers.ts')
-rw-r--r-- | lib/compilers/argument-parsers.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/compilers/argument-parsers.ts b/lib/compilers/argument-parsers.ts index 4d9fe5af8..1556ad09f 100644 --- a/lib/compilers/argument-parsers.ts +++ b/lib/compilers/argument-parsers.ts @@ -711,8 +711,8 @@ export class VCParser extends BaseParser { let col1; let col2; if (line.length > 39 && line[40] === '/') { - col1 = line.substr(0, 39); - col2 = line.substr(40); + col1 = line.substring(0, 39); + col2 = line.substring(40); } else { col1 = line; col2 = ''; @@ -923,7 +923,7 @@ export class TableGenParser extends BaseParser { } actions.push({ - name: action_match[1].substr(2) + ': ' + action_match[2], + name: action_match[1].substring(2) + ': ' + action_match[2], value: action_match[1], }); } |