fix(style_compiler): don’t resolve absolute urls that start with a / during compilation

Closes #4763
This commit is contained in:
Tobias Bosch
2015-10-15 10:17:14 -07:00
parent cec8b58373
commit a941fb08f7
2 changed files with 7 additions and 2 deletions
@@ -96,6 +96,11 @@ export function main() {
it('should not resolve urls with other schema',
() => { expect(isStyleUrlResolvable('http://otherurl')).toBe(false); });
it('should not resolve urls with absolute paths', () => {
expect(isStyleUrlResolvable('/otherurl')).toBe(false);
expect(isStyleUrlResolvable('//otherurl')).toBe(false);
});
});
}