UNPKG

semantic-regexp

Version:

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

2 lines (1 loc) 553 B
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).SemanticRegExp={})}(this,(function(e){"use strict";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("")}}e.SRegExpFactory=t,e.creatRegExp=function(e,n){return new t(e,n)},Object.defineProperty(e,"__esModule",{value:!0})}));