From ca617859f49083105f348c8cfc155fb3bf307f93 Mon Sep 17 00:00:00 2001 From: aruntk Date: Tue, 14 Mar 2017 10:39:48 +0530 Subject: [PATCH] cleanup css regex --- src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index 311c4ab..983fefa 100644 --- a/src/index.js +++ b/src/index.js @@ -144,7 +144,7 @@ class DissectHtml { const self = this // to get -> property: url(filepath) - const processed = text.replace(/url\(["'|]?([^"'|)]+?)["'|]?\)/ig, function (_u, url) { + const processed = text.replace(/url\(["']?([^"')]+?)["']?\)/ig, function (_u, url) { // to get -> filepath from url(filepath), url('filepath') and url('filepath') return `url(${self._changeRelUrl(url, path.dirname(cssBasePath))})` })