From 5c048ac20a4cec2e7396540fb6e8e4c5e1fd50f9 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Sat, 4 Jan 2014 14:24:50 -0500 Subject: [PATCH] closed #727 --- public/src/utils.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/public/src/utils.js b/public/src/utils.js index 2fa9d047fa..01698fe932 100644 --- a/public/src/utils.js +++ b/public/src/utils.js @@ -6,6 +6,8 @@ if ('undefined' === typeof window) { fs = require('fs'); XRegExp = require('xregexp').XRegExp; + } else { + XRegExp = window.XRegExp; }