X-Git-Url: http://git.indexdata.com/?p=cql-js-moved-to-github.git;a=blobdiff_plain;f=index.html;h=50aaef121c88b2dbe0d218453815ce618e67b21b;hp=1024e5b8008fcb0f01d336f6d3abdcc550afabbc;hb=HEAD;hpb=549d7685dd4fe9ac422f0cbfdee3d0c604ad7173;ds=sidebyside diff --git a/index.html b/index.html index 1024e5b..50aaef1 100644 --- a/index.html +++ b/index.html @@ -8,7 +8,12 @@ try { cp.parse(query); document.getElementById("output").value = cp.toXCQL(); - document.getElementById("output2").value = cp.toFQ(); + document.getElementById("output2").value = cp.toString();; + //re-parse fq to see the o/i matches + var fq = cp.toFQ(); + document.getElementById("output3").value = fq; + cp.parseFromFQ(fq); + document.getElementById("output4").value = cp.toString(); } catch (e) { document.getElementById("output").value = e.message; document.getElementById("output2").value = e.message; @@ -30,6 +35,8 @@ + +