trim
Purpose
trim trims the incoming string, just like your favorite programming language's TrimPrefix, TrimSuffix or TrimSpaces command.
Usage
"type": "trim",
"config": {
"type": "<string>",
"value": "<string>"
}
- type - either
left
,right
orspaces
. Left is equivalent of TrimPrefix, right=TrimSuffix and spaces=TrimSpaces (default=spaces) - value - string suffix or prefix to be removed. For instance, if you want
csrf_FOO
to becomeFOO
then the value would becsrf_
Example
Configuration
"type": "trim",
"config": {
"type": "left",
"value": "REQID_"
}