diff --git a/Objective-J/Tools/objj/lib/objj/objjc.js b/Objective-J/Tools/objj/lib/objj/objjc.js index debff871b..9d9357f1c 100644 --- a/Objective-J/Tools/objj/lib/objj/objjc.js +++ b/Objective-J/Tools/objj/lib/objj/objjc.js @@ -1,6 +1,8 @@ var File = require("file"); var window = require("browser/window"); +require("./regexp-rhino-patch"); + var exported = ["OBJJ_HOME", "objj_preprocess", "FRAGMENT_FILE", "FRAGMENT_LOCAL", "MARKER_CODE", "MARKER_IMPORT_STD", "MARKER_IMPORT_LOCAL", diff --git a/Tools/Utilities/regex-bridge.js b/Objective-J/Tools/objj/lib/objj/regexp-rhino-patch.js similarity index 83% rename from Tools/Utilities/regex-bridge.js rename to Objective-J/Tools/objj/lib/objj/regexp-rhino-patch.js index 7f3afe76c..9b0c15e03 100644 --- a/Tools/Utilities/regex-bridge.js +++ b/Objective-J/Tools/objj/lib/objj/regexp-rhino-patch.js @@ -1,9 +1,3 @@ -importClass(java.util.ArrayList); -importClass(java.util.List); -importClass(java.util.regex.Matcher); -importClass(java.util.regex.Pattern); -importClass(java.util.regex.PatternSyntaxException); - var CachedRegexData = []; function regexDataFromRegex(aRegex) @@ -37,10 +31,10 @@ function regexDataFromRegex(aRegex) source = source.replace("(?