Constructor
new TextReplacer(rules)
- Source:
 
Parameters:
| Name | Type | Description | 
|---|---|---|
rules | 
            
            
Methods
apply(text) → {string}
- Description:
 Applies the replacement rules to the given text.
- Source:
 
Parameters:
| Name | Type | Description | 
|---|---|---|
text | 
            
            string | The input text to process.  | 
        
Returns:
- The modified text.
 
- Type
 - string
 
parseRules(rules)
- Description:
 Parses the rules and converts them into appropriate types.
- Source:
 
Parameters:
| Name | Type | Description | 
|---|---|---|
rules |