|
|
@@ -87,7 +87,7 @@ pos.len == 2;
|
|
|
~/a/g.replace("bab", "z") == "bzb";
|
|
|
~/a/g.replace("baba", "z") == "bzbz";
|
|
|
|
|
|
-#if !(hl && interp) // not allowed in local interpreter, still allowed in hl runtime
|
|
|
+#if !(hl && interp) // not allowed in local interpreter, still allowed in hl runtime
|
|
|
// replace + $
|
|
|
~/href="(.*?)"/.replace('lead href="foo" trail',"$1") == "lead foo trail";
|
|
|
//~/href="(.*?)"/.replace('lead href="foo" trail',"$2") == "lead $2 trail";
|
|
|
@@ -109,4 +109,6 @@ pos.len == 2;
|
|
|
~/(Hola)/.map("Hello World", function(e) return throw "not called") == "Hello World";
|
|
|
|
|
|
// escape
|
|
|
+#if !hl
|
|
|
new EReg("^" + EReg.escape("\\ ^ $ * + ? . ( ) | { } [ ]") + "$", "").match("\\ ^ $ * + ? . ( ) | { } [ ]") == true;
|
|
|
+#end
|