Skip to content

Commit 27da319

Browse files
committed
Made URI pattern specific to hostname format, so less general
1 parent 5ee3fa2 commit 27da319

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

uri/patterns.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ patterns:
6262
start: |
6363
\b[A-Za-z][A-Za-z0-9+_-]*://[^/?#:@\s\p{Cc}]*:
6464
end: |
65-
@[^/?#\s\p{Cc},_=!{}()<>~`[\]*&^$£'";|]*(?:\:[0-9]{1,5})?[/?#\s]
65+
@[\p{L}\p{N}\.-]*(?:\:[0-9]{1,5})?[/?#\s]
6666
additional_not_match:
6767
# placeholders
6868
- (?i)^[[{(<]?(?:password|passwd|secret)[\]})>]?$

0 commit comments

Comments
 (0)