Constructor
new RegexLiteral(text)
Constructs a regular expression from the parameter
Parameters:
Name | Type | Description |
---|---|---|
text |
String | the regex in text form |
- Source:
Extends
Methods
accept()
Overrides AST#accept
- Overrides:
- Source:
getRegex() → {RegExp}
Gets the regular expression as a Javascript RegExp object
- Source:
Returns:
The regular expression
- Type
- RegExp