abapify
adt-cli
quality: simplify detectGithubRepo to cut regex complexity Split host extraction into two small paths: `new URL()` for proper URL schemes and a trivial SCP-style regex for `user@host:path`. The combined regex in the previous commit had cyclomatic complexity 31 (> 20 allowed by SonarCloud `typescript:S5843`). Behaviour and the `js/incomplete-url-substring-sanitization` fix are preserved — host match is now anchored via `URL.hostname` or an explicit SCP host capture, so substrings like `github.com.attacker.com` still cannot match. Resolves SonarCloud issue typescript:S5843 on fix/main-health.
nx affected -t lint test build e2e-ci --verbose=false --parallel=3
Sign in / Sign up
Open main menu
Succeeded
CI Pipeline Execution
nx affected -t lint test build e2e-ci --verbose=false --parallel=3
Click to copy
Linux
4 CPU cores
read
access token used
6e4df7d5
115