Add production dependencies
This commit is contained in:
parent
5a0114f3e2
commit
579ccdc29f
12113 changed files with 978046 additions and 3 deletions
17
node_modules/import-regex/index.js
generated
vendored
Normal file
17
node_modules/import-regex/index.js
generated
vendored
Normal file
|
@ -0,0 +1,17 @@
|
|||
'use strict';
|
||||
|
||||
/**
|
||||
* Regular expression for matching CSS @imports
|
||||
*
|
||||
* @param {Object} opts
|
||||
* @api public
|
||||
*/
|
||||
|
||||
module.exports = function (opts) {
|
||||
opts = opts || {};
|
||||
|
||||
var regex = '(?:@import)(?:\\s)(?:url)?(?:(?:(?:\\()(["\'])?(?:[^"\')]+)\\1(?:\\))|(["\'])(?:.+)\\2)(?:[A-Z\\s])*)+(?:;)';
|
||||
|
||||
return opts.exact ? new RegExp('(?:^' + regex + '$)', 'i') :
|
||||
new RegExp('(?:^|\\s)?' + regex, 'gi');
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue