css-url-regex
![js-standard-style](https://camo.githubusercontent.com/5903f590e5e92b5fb972d9ead1dbf26e33367b8f88dc390f0e0d9ae3a06cb471/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f636f64652532307374796c652d7374616e646172642d627269676874677265656e2e7376673f7374796c653d666c6174)
A regular expression for matching CSS urls, url(foo.css)
.
Installation
npm i --save css-url-regex
Usage
var cssUrl = require('css-url-regex')
cssUrl().test('url(bar.css)') // => true
cssUrl().test('kljhsdf') // => false
License
MIT
Contributing
- 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.