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:
sonarqube-agent[bot] 2026-04-27 17:13:08 +00:00 committed by GitHub
parent 3624b79d9a
commit 87c1a1a72c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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) => {