Skip to content

Commit

Permalink
Fix code scanning alert no. 284: Disallow unnecessary escape characters
Browse files Browse the repository at this point in the history
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
  • Loading branch information
tolauwae and github-advanced-security[bot] authored Dec 6, 2024
1 parent d22ebb6 commit c8243b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sourcemap/SourceMapper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ function extractDetailedSection(section: string, input: string): string[] {
return [];
}

const count: number = +(lines[i++].split(/[\[\]]+/)[1]);
const count: number = +(lines[i++].split(/[[]+/)[1]);
return lines.slice(i, ((isNaN(count)) ? lines.length : i + count));
}

Expand Down

0 comments on commit c8243b6

Please sign in to comment.