Skip to content

Commit d5f18ee

Browse files
Fix Overly permissive regular expression range (#97)
* fix CodeQL warning * another one --------- Co-authored-by: James Bruten <[email protected]>
1 parent c10c876 commit d5f18ee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

suite_report.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -479,13 +479,13 @@ def __init__(
479479
# Final attempt to ensure the links have revision numbers and not
480480
# keywords which aren't evaluated in the browser.
481481
if proj_dict["repo link"] is not None and re.search(
482-
r"rev=[a-zA-z]", proj_dict["repo link"]
482+
r"rev=[a-zA-Z]", proj_dict["repo link"]
483483
):
484484
revision = self.revision_from_loc_layout(
485485
proj_dict["repo mirror"], fcm_exec
486486
)
487487
proj_dict["repo link"] = re.sub(
488-
r"rev=[a-zA-z0-9.]+",
488+
r"rev=[a-zA-Z0-9.]+",
489489
"rev=" + revision,
490490
proj_dict["repo link"],
491491
)

0 commit comments

Comments
 (0)