A regular expression for matching CSS urls, url(foo.css)
.
npm i --save css-url-regex
var cssUrl = require('css-url-regex')
cssUrl().test('url(bar.css)') // => true
cssUrl().test('kljhsdf') // => false
MIT
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
Crafted with <3 by John Otander.