Skip to content
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

Can not filter \n\n\n\n #168

Open
sojs-coder opened this issue Jun 13, 2023 · 1 comment
Open

Can not filter \n\n\n\n #168

sojs-coder opened this issue Jun 13, 2023 · 1 comment

Comments

@sojs-coder
Copy link

I am allowing users to send multiple lines in a chat. When a user sends nothing but empty lines, the filter breaks, and throws Uncaught TypeError: Cannot read properties of null (reading '0') at Filter.clean.

@Eiim
Copy link

Eiim commented Aug 16, 2024

More broadly, this happens when the characters are all whitespace (eg ) or the string is empty.

web-mech added a commit that referenced this issue Aug 17, 2024
…lean method

this was refactored a bit as suggested by tsc when typing everything up, in turn i think this is
resolved based on the test cases added for this use-case.

#168
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

No branches or pull requests

2 participants