Skip to content

Commit

Permalink
Added "+" to url patterns
Browse files Browse the repository at this point in the history
  • Loading branch information
cccs-sgaron committed Apr 25, 2020
1 parent 3e37db8 commit 5bd2245
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions assemblyline_v4_service/common/balbuzard/patterns.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,22 +215,22 @@ class PatternMatch(object):
PAT_URL = rb'(?i)(?:ftp|http|https)://' \
rb'[A-Z0-9.-]{1,}\.(?:XN--[A-Z0-9]{4,18}|[a-z]{2,12}|[0-9]{1,3})' \
rb'(?::[0-9]{1,5})?' \
rb'(?:/[A-Z0-9/\-\.&%\$#=~\?_]{3,200}){0,1}'
rb'(?:/[A-Z0-9/\-\.&%\$#=~\?_+]{3,200}){0,1}'
PAT_ANYHTTP = rb'(?i)http://' \
rb'[A-Z0-9.-]{6,}\.' \
rb'(?:XN--[A-Z0-9]{4,18}|[a-z]{2,12}|[0-9]{1,3})' \
rb'(?::[0-9]{1,5})?' \
rb'/[A-Z0-9/\-\.&%\$#=~\?_]{5,}[\r\n]*'
rb'/[A-Z0-9/\-\.&%\$#=~\?_+]{5,}[\r\n]*'
PAT_ANYHTTPS = rb'(?i)https://' \
rb'[A-Z0-9.-]{6,}\.' \
rb'(?:XN--[A-Z0-9]{4,18}|[a-z]{2,12}|[0-9]{1,3})' \
rb'(?::[0-9]{1,5})?' \
rb'/[A-Z0-9/\-\.&%\$#=~\?_]{5,}[\r\n]*'
rb'/[A-Z0-9/\-\.&%\$#=~\?_+]{5,}[\r\n]*'
PAT_ANYFTP = rb'(?i)ftp://' \
rb'[A-Z0-9.-]{6,}\.' \
rb'(?:XN--[A-Z0-9]{4,18}|[a-z]{2,12}|[0-9]{1,3})' \
rb'(?::[0-9]{1,5})?' \
rb'/[A-Z0-9/\-\.&%\$#=~\?_]{5,}[\r\n]*'
rb'/[A-Z0-9/\-\.&%\$#=~\?_+]{5,}[\r\n]*'

PAT_EXEDOS = rb'This program cannot be run in DOS mode'
PAT_EXEHEADER = rb'(?s)MZ.{32,1024}PE\000\000'
Expand Down

0 comments on commit 5bd2245

Please sign in to comment.