Report #3217
output filter replace
| source | Amalthea Skydancer |
|---|---|
| version | 0.3 |
| status | RES |
| priority | TRI |
| target fix | 0.5.7 |
| report date | 2024-01-27 21:35:20 |
| report | Configuring the replace output filter with the following wordlist: [07:06] filter.replace.thea I'm: this unit i: this unit me: this unit my: this unit's If you type "I" it's replaced as expected with "This unit", but if you type "I'm", the output is "This unit'm" repro steps: 1. @db filter.replace.thea { "I'm": "this unit", "i": "this unit", "me": "this unit", "my": "this unit's" } 2. configure replace as output filter 3. activate output filter 4. say "I'm" |
3 months ago
rhet0rica:
'replace' treats punctuation as a wordbreak for performance. Added 'phrase' filter to handle this usage case.