bugifx: lazy '?' in regex
diff --git a/src/test/java/AqlTreeTest.java b/src/test/java/AqlTreeTest.java
index faa1cd1..af175cc 100644
--- a/src/test/java/AqlTreeTest.java
+++ b/src/test/java/AqlTreeTest.java
@@ -60,6 +60,12 @@
aqlt = new AqlTree(query);
map = aqlt.getRequestMap().get("query").toString();
assertEquals(regex1.replaceAll(" ", ""), map.replaceAll(" ", ""));
+
+ query = "/.*?Mann.*?/";
+ String regex2 = "{@type=korap:token, wrap={@type=korap:term, type=type:regex, key=.*?Mann.*?, match=match:eq}}";
+ aqlt = new AqlTree(query);
+ map = aqlt.getRequestMap().get("query").toString();
+ assertEquals(regex2.replaceAll(" ", ""), map.replaceAll(" ", ""));
}
@Test