<commit_before>
/**
 * Module dependencies.
 */

var func = require('rework-plugin-function');

/**
 * Map `url()` calls.
 *
 *   body {
 *     background: url(/images/bg.png);
 *   }
 *
 * yields:
 *
 *   body {
 *     background: url(http://example.com/images/bg.png);
 *   }
 *
 */

module.exports = function(fn) {
  return func({
    url: function(path){
      return 'url("' + fn(path) + '")';
    }
  }, false);
};<commit_msg>Remove quotes and whitespace from provided url. Fixes #1.<commit_after>
/**
 * Module dependencies.
 */

var func = require('rework-plugin-function');

/**
 * Map `url()` calls.
 *
 *   body {
 *     background: url(/images/bg.png);
 *   }
 *
 * yields:
 *
 *   body {
 *     background: url(http://example.com/images/bg.png);
 *   }
 *
 */

module.exports = function(fn) {
  return func({
    url: function(path){
      path = path.split('"').join('');
      path = path.split('\'').join('');
      return 'url("' + fn(path.trim()) + '")';
    }
  }, false);
};
{'fraction_non_alphanumeric': 0.22233400402414488, 'fraction_numerical': 0.001006036217303823, 'mean_word_length': 2.491228070175439, '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': '3881245', 'n_tokens_mistral': 355, 'n_tokens_neox': 352, 'n_words': 64}