Browse Source

add the RegExp.quote stuff in

pull/423/head
connors 11 years ago
parent
commit
e76d117847
  1. 4
      Gruntfile.js

4
Gruntfile.js

@ -10,6 +10,10 @@ module.exports = function(grunt) {
// Force use of Unix newlines
grunt.util.linefeed = '\n';
RegExp.quote = function (string) {
return string.replace(/[-\\^$*+?.()|[\]{}]/g, '\\$&');
};
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),

Loading…
Cancel
Save