node_modules/grunt-angular-builder/tasks/middleware/exportRequiredStylesheets.js
/**
   * Extracts file paths from embedded comment references to stylesheets and appends them to `paths`.
   * @param {string} sourceCode
   * @param {string} filePath
   */
Extracts file paths from embedded comment references to stylesheets and appends them to `paths`.
@param {string} sourceCode
@param {string} filePath
Extracts file paths from embedded comment references to stylesheets and appends them to ` paths ` . @param { string } sourceCode @param { string } filePath
function scan (sourceCode, filePath)
  {
    var match;
    while ((match = MATCH_DIRECTIVE.exec (sourceCode))) {
      match[1].split (',').forEach (function (s)
      {
        var url = s.match (/(["'])(.*?)\1/)[2];
        paths.push (path.normalize (path.dirname (filePath) + '/' + url));
      });
    }
  }
function scan ( sourceCode , filePath ) { var match ; while ( ( match = MATCH_DIRECTIVE . exec ( sourceCode ) ) ) { match [ 1 ] . split ( ',' ) . forEach ( function ( s ) { var url = s . match ( / (["'])(.*?)\1 / ) [ 2 ] ; paths . push ( path . normalize ( path . dirname ( filePath ) + '/' + url ) ) ; } ) ; } }
Extracts file paths from embedded comment references to stylesheets and appends them to `paths`.
Extracts file paths from embedded comment references to stylesheets and appends them to ` paths ` .
/* jshint -W083 */