mirror of
https://github.com/zero-peak/ZeroOmega.git
synced 2025-01-22 15:08:12 -05:00
Fix urlWildcard2HostWildcard host part matching regex. #80.
This commit is contained in:
parent
35ba0c2253
commit
1d747a21bd
@ -16,7 +16,7 @@ module.exports = exports =
|
||||
urlWildcard2HostWildcard: (pattern) ->
|
||||
result = pattern.match ///
|
||||
^\*:\/\/ # Begins with *://
|
||||
((?:\w|[?*.])+) # The host part follows.
|
||||
((?:\w|[?*._\-])+) # The host part follows.
|
||||
\/\*$ # And ends with /*
|
||||
///
|
||||
result?[1]
|
||||
|
Loading…
Reference in New Issue
Block a user