UNPKG

semantic-regexp

Version:

This is an implementation of the semantic expression of regular expression code

2 lines (1 loc) 268 B
function e(e,r){return new t(e,r)}class t{constructor(e,t){this.regExpPattern="",this.regExpMode=void 0,this.end=()=>new RegExp(this.regExpPattern,this.regExpMode),this.regExpPattern=e.join(""),this.regExpMode=t.join("")}}export{t as SRegExpFactory,e as creatRegExp};