--
This commit is contained in:
parent
24f3d27984
commit
6b60015c02
9588 changed files with 1149251 additions and 49 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…
Reference in a new issue