Skip to content

Commit c8243b6

Browse files
Fix code scanning alert no. 284: Disallow unnecessary escape characters
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
1 parent d22ebb6 commit c8243b6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/sourcemap/SourceMapper.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ function extractDetailedSection(section: string, input: string): string[] {
153153
return [];
154154
}
155155

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

0 commit comments

Comments
 (0)