mirror of
https://github.com/github/codeql.git
synced 2026-04-30 19:26:02 +02:00
fix(regex): update pattern to match both gh and hub commands
This commit is contained in:
@@ -242,7 +242,7 @@ class GhMutableRefCheckout extends MutableRefCheckoutStep instanceof Run {
|
||||
GhMutableRefCheckout() {
|
||||
exists(string line |
|
||||
this.getScript().splitAt("\n") = line and
|
||||
line.regexpMatch(".*gh\\s+pr\\s+checkout.*") and
|
||||
line.regexpMatch(".*(gh|hub)\\s+pr\\s+checkout.*") and
|
||||
(
|
||||
(containsHeadRef(line) or containsPullRequestNumber(line))
|
||||
or
|
||||
|
||||
Reference in New Issue
Block a user