From aa05cf6073cf2a6dfa46108cd5522c0171a7f1c3 Mon Sep 17 00:00:00 2001 From: Benjamin Barenblat Date: Thu, 30 Jul 2015 16:51:31 -0400 Subject: Make library work on both client and server sides Replace the two-step compile/match process with a single compile-and-match one to avoid issues with server-client representation incompatibility. Use the browser regex engine on the client side. --- src/lib.urp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/lib.urp') diff --git a/src/lib.urp b/src/lib.urp index 9f95450..2dff404 100644 --- a/src/lib.urp +++ b/src/lib.urp @@ -1,5 +1,11 @@ ffi regex__FFI include regex__FFI.h link -lurweb_regex +jsFunc Regex__FFI.succeeded=UrWeb.Regex.succeeded +jsFunc Regex__FFI.n_subexpression_matches=UrWeb.Regex.nSubexpressionMatches +jsFunc Regex__FFI.subexpression_match=UrWeb.Regex.subexpressionMatch +jsFunc Regex__FFI.do_match=UrWeb.Regex.doMatch +file /cgGvSqBi.js regex__FFI.js +script /cgGvSqBi.js regex \ No newline at end of file -- cgit v1.2.3