Skip to content

Latest commit

 

History

History
38 lines (21 loc) · 832 Bytes

File metadata and controls

38 lines (21 loc) · 832 Bytes

obscenity


obscenity / parseRawPattern

Function: parseRawPattern()

parseRawPattern(pattern): ParsedPattern

Defined in: src/pattern/Pattern.ts:130

Parses a string as a pattern directly.

Note

It is recommended to use the [[pattern | pattern template tag]] instead of this function for literal patterns (i.e. ones without dynamic content).

Parameters

pattern

string

The string to parse.

Returns

ParsedPattern

The parsed pattern, which can then be used with the [[RegExpMatcher]].

Throws

[[ParserError]] if a syntactical error was detected while parsing the pattern.