fix(style_url_resolver): fix data: url resolution

This commit is contained in:
yjbanov
2015-07-28 18:38:35 -07:00
parent 192cf9ddf5
commit 73b7d99dc4
4 changed files with 41 additions and 3 deletions

View File

@ -263,7 +263,10 @@ export class RegExpWrapper {
regExp.lastIndex = 0;
return regExp.exec(input);
}
static test(regExp: RegExp, input: string): boolean { return regExp.test(input); }
static test(regExp: RegExp, input: string): boolean {
regExp.lastIndex = 0;
return regExp.test(input);
}
static matcher(regExp: RegExp, input: string): {
re: RegExp;
input: string