<commit_before>'use strict';

// Node.js built-ins

var path = require('path');
var url = require('url');

// this module

module.exports = function (opts) {
  var contents = opts.contents;
  var filePath = opts.filePath;
  var index = opts.index;

  // original remote URL for the given CSS file
  var cssRemoteUrl = index.resolveRemoteUrl(path.basename(filePath));

  return contents.replace(/url\([''\s]*[^\(\)]+[''\s]*\)/g, function (cssUrlStmt) {
    var cssUrl = cssUrlStmt.replace(/url\([''\s]*([^\(\)]+)[''\s]*\)/, '$1');
    var remoteUrl;
    var localUrl;
    if (cssUrl.indexOf('data:') === 0) {<commit_msg>ACF-10 # fix regexps to handly CSS `url()` quotes<commit_after>'use strict';

// Node.js built-ins

var path = require('path');
var url = require('url');

// this module

module.exports = function (opts) {
  var contents = opts.contents;
  var filePath = opts.filePath;
  var index = opts.index;

  // original remote URL for the given CSS file
  var cssRemoteUrl = index.resolveRemoteUrl(path.basename(filePath));

  return contents.replace(/url\(['"\s]*[^\(\)'"]+['"\s]*\)/g, function (cssUrlStmt) {
    var cssUrl = cssUrlStmt.replace(/url\(['"\s]*([^\(\)'"]+)['"\s]*\)/, '$1');
    var remoteUrl;
    var localUrl;
    if (cssUrl.indexOf('data:') === 0) {
{'fraction_non_alphanumeric': 0.21283255086071987, 'fraction_numerical': 0.004694835680751174, 'mean_word_length': 3.702205882352941, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2990743', 'n_tokens_mistral': 444, 'n_tokens_neox': 439, 'n_words': 107}