From 5dc5c5ace064c311f3f1b0078d5a466559473b03 Mon Sep 17 00:00:00 2001 From: Brian White Date: Fri, 31 Aug 2012 01:05:18 -0400 Subject: [PATCH] Add slightly modified copy of XRegExp used in parser rewrite --- lib/xregexp.js | 3954 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 3954 insertions(+) create mode 100644 lib/xregexp.js diff --git a/lib/xregexp.js b/lib/xregexp.js new file mode 100644 index 0000000..7150857 --- /dev/null +++ b/lib/xregexp.js @@ -0,0 +1,3954 @@ +/*! + * XRegExp All 3.0.0-pre + * + * Steven Levithan © 2012 MIT License + */ + +// Module systems magic dance +;(function(definition) { + // Don't turn on strict mode for this function, so it can assign to global + var self; + + // RequireJS + if (typeof define === 'function') { + define(definition); + // CommonJS + } else if (typeof exports === 'object') { + self = definition(); + // Use Node.js's `module.exports`. This supports both `require('xregexp')` and + // `require('xregexp').XRegExp` + (typeof module === 'object' ? (module.exports = self) : exports).XRegExp = self; + //