There was an error while loading. Please reload this page.
2 parents 82f0961 + fbeb457 commit c1106e1Copy full SHA for c1106e1
src/core/propertyTypes.js
@@ -6,6 +6,7 @@ var warn = debug('core:propertyTypes:warn');
6
7
var propertyTypes = module.exports.propertyTypes = {};
8
var nonCharRegex = /[,> .[\]:]/;
9
+var urlRegex = /\url\((.+)\)/;
10
11
// Built-in property types.
12
registerPropertyType('audio', '', assetParse);
@@ -77,7 +78,7 @@ function assetParse (value) {
77
78
if (typeof value !== 'string') { return value; }
79
80
// Wrapped `url()` in case of data URI.
- parsedUrl = value.match(/\url\((.+)\)/);
81
+ parsedUrl = value.match(urlRegex);
82
if (parsedUrl) { return parsedUrl[1]; }
83
84
// ID.
0 commit comments