diff --git a/source/Ox/js/Type.js b/source/Ox/js/Type.js index 8d61bd08..a3f7843b 100644 --- a/source/Ox/js/Type.js +++ b/source/Ox/js/Type.js @@ -171,8 +171,7 @@ Ox.isEqual = function(a, b) { } else if (type == 'element') { ret = a.isEqualNode(b); } else if (type == 'regexp') { - ret = a.global == b.global && a.ignore == b.ignore - && a.multiline == b.multiline && a.source == b.source; + ret = a.toString() == b.toString(); } else if ( (type == 'arguments' || type == 'array' || type == 'object') && Ox.len(a) == Ox.len(b)