cross-platform match function in re-flex
This commit is contained in:
@@ -2,6 +2,21 @@ package re_flex;
|
||||
|
||||
import kiss.Prelude;
|
||||
import kiss.List;
|
||||
#if hxnodejs
|
||||
import js.lib.RegExp;
|
||||
import haxe.DynamicAccess;
|
||||
#end
|
||||
|
||||
typedef RMatch = {
|
||||
left:String,
|
||||
match:String,
|
||||
right:String,
|
||||
#if hxnodejs
|
||||
groups:Array<String>,
|
||||
namedGroups:DynamicAccess<String,String>,
|
||||
#end
|
||||
group:Int->String
|
||||
};
|
||||
|
||||
@:build(kiss.Kiss.build())
|
||||
class R {}
|
||||
|
||||
Reference in New Issue
Block a user