Skip to content

Reduce spaces to make word filters more effective#14

Open
JamoCA wants to merge 1 commit intosebtools:masterfrom
JamoCA:patch-1
Open

Reduce spaces to make word filters more effective#14
JamoCA wants to merge 1 commit intosebtools:masterfrom
JamoCA:patch-1

Conversation

@JamoCA
Copy link
Contributor

@JamoCA JamoCA commented Feb 9, 2023

Reduce multiple spaces\tabs\carriage returns to a single space to make word filters easier.

This sanitization filter makes it possible to write a single rule to handle situations where multiple rules would otherwise be needed due to randomized spacing.

This content:

To unsubscribe,
click here

... is sanitized to To unsubscribe, click here so that a single rule works regardless of the amount of space class characters added between non-space characters.

Reduce multiple spaces\tabs\carriage returns to a single space to make word filters easier.

This sanitization filter makes it possible to write a single rule to handle situations where multiple rules would otherwise be needed due to randomized spacing.

This content:
```
To unsubscribe,
click here
```
... is sanitized to `To unsubscribe, click here` so that a single rule works regardless of the amount of space class characters added between non-space characters.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant