css-url-regex

Regular expression for matching CSS urls.

MIT 7 个版本
安装
npm install css-url-regex
yarn add css-url-regex
pnpm add css-url-regex
bun add css-url-regex
README

css-url-regex

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

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

Crafted with <3 by John Otander.

版本列表
4.0.0 2020-12-08
3.5.0 2020-11-03
3.3.1 2019-07-26
3.3.0 2019-03-23
1.1.0 2017-04-05
1.0.0 2015-10-16
0.0.1 2014-12-02