Class: ReplaceParser
The replace tag will replace specific characters in a string.
The parameter should split by a ,
, containing the characters to find
before the command and the replacements after.
Example
Extends
Implements
Constructors
new ReplaceParser()
new ReplaceParser(): ReplaceParser
Returns
Overrides
Defined in
Properties
acceptedNames
protected
acceptedNames: string
[]
Inherited from
Defined in
requiredParameter
protected
requiredParameter: boolean
Inherited from
Defined in
requiredPayload
protected
requiredPayload: boolean
Inherited from
Defined in
Methods
parse()
parse(ctx
): string
Parses the given tag.
Parameters
• ctx: Context
The context of the tag.
Returns
string
Implementation of
Defined in
toJSON()
toJSON(): object
Returns
object
acceptedNames
acceptedNames: string
[]
requiredParameter
requiredParameter: boolean
requiredPayload
requiredPayload: boolean
Inherited from
Defined in
willAccept()
willAccept(ctx
): boolean
Whether the parser can handle the given tag.
Parameters
• ctx: Context
Returns
boolean