Skip to content

Reduce spaces to make word filters more effective #14

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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