Closed gui-xie closed 5 years ago
URL_REGEX will not work if url with char ')' . For Example: url("/test(1).jpg")
original code: var URL_REGEX = /url(['"]?([^'"]+?)['"]?)/g;
should be modified: /url(['"]?([^'"]+?)['"]?)(?:$|[\s;])/g
URL_REGEX will not work if url with char ')' . For Example: url("/test(1).jpg")
original code: var URL_REGEX = /url(['"]?([^'"]+?)['"]?)/g;
should be modified: /url(['"]?([^'"]+?)['"]?)(?:$|[\s;])/g