build_url_regex: fix type detection of string vs regexp
commit851e3af1b6f0fa1ebe8ef4e74bc0d30df89eaa07
authorJohn Foerch <jjfoerch@earthlink.net>
Mon, 4 Oct 2010 20:10:50 +0000 (4 16:10 -0400)
committerJohn Foerch <jjfoerch@earthlink.net>
Mon, 4 Oct 2010 20:10:50 +0000 (4 16:10 -0400)
treec27f428cacf75635d3f45e9b1aa0beb28b33ffc1
parent417933e35665f2f7d754909dce582fea4a124627
build_url_regex: fix type detection of string vs regexp

Literal regexps are not "instanceof RegExp", so this patch fixes
build_url_regex to use a more complete type detection method.
modules/utils.js