Fix urlWildcard2HostWildcard host part matching regex. #80.

This commit is contained in:
FelisCatus 2014-12-22 18:20:53 +08:00
parent 35ba0c2253
commit 1d747a21bd

View File

@ -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]