Allow filter to use any scheme

This commit is contained in:
Cheng Zhao 2017-02-01 15:06:40 +09:00 committed by Kevin Sawicki
parent e0c021bfef
commit 86215d4300

View file

@ -26,6 +26,7 @@ struct Converter<URLPattern> {
std::string pattern;
if (!ConvertFromV8(isolate, val, &pattern))
return false;
*out = URLPattern(URLPattern::SCHEME_ALL);
return out->Parse(pattern) == URLPattern::PARSE_SUCCESS;
}
};