2002/04/27 04:10:50
[org.ibex.core.git] / src / org / xwt / XWT.java
index fb958e4..e3368aa 100644 (file)
@@ -93,7 +93,7 @@ public final class XWT extends JSObject {
 
     private static final JSFunction regexp = new JSFunction() {
             public Object call(Context cx, Scriptable thisObj, Scriptable ctorObj, Object[] args) throws JavaScriptException {
-                try { return Context.enter().newObject(org.xwt.util.JSObject.defaultObjects, "Regexp", args);
+                try { return Context.enter().newObject(org.xwt.util.JSObject.defaultObjects, "RegExp", args);
                 } catch (Exception e) {
                     if (Log.on) Log.log(this, "Exception in Context.newObject() -- this should never happen");
                     if (Log.on) Log.log(this, e);