mirror of
https://github.com/SonarSource/sonarqube-scan-action.git
synced 2026-05-22 18:05:57 +00:00
fix: Commit 2 - Fully fix javascript:S7781
Commit 2 of SonarQube suggestions Fully fixed issues: - [javascript:S7781] AZ3P6TM6KPJHm3wzH1DD: Prefer `String#replaceAll()` over `String#replace()`. Generated by SonarQube Agent
This commit is contained in:
parent
3624b79d9a
commit
87c1a1a72c
1 changed files with 1 additions and 1 deletions
|
|
@ -111,7 +111,7 @@ export function convertToUnixPath(windowsPath) {
|
|||
}
|
||||
|
||||
// Convert backslashes to forward slashes
|
||||
let unixPath = windowsPath.replaceAll('\\', "/");
|
||||
let unixPath = windowsPath.replaceAll("\\", "/");
|
||||
|
||||
// Convert drive letter (e.g., C: -> /c)
|
||||
unixPath = unixPath.replace(/^([A-Za-z]):/, (match, drive) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue