-
-
Notifications
You must be signed in to change notification settings - Fork 142
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
strings should be trimmed? #31
Comments
Nope, it accepts what's given. Only truthiness is checked, as your This is by design as it also matches |
Maybe it is supposed to be in the discussion section, but there is no such thing in this repo. I just wanted to have an opinion on the following cases. Multiple spaces
Returns:
Same class name
and in this case it returns
End result is usually used in HTML and applying multiple CSS class names does not affect the end result and the sorting also does not matter here. I'm checking what the browser's javascript gets. And it gets rid of all the mess - probably some sort of |
This utility does exactly what it should. It combines truthy values together. |
so I suppose I should use
instead of this lib? Any ideas for a better solution? |
Yes, a Beyond that, I'm not sure what you're doing or asking. |
Let's imagine that I am building a web app to build layouts using tailwind CSS. There will be many configuration items on particular element and the outcome should be good-looking prettified source code of HTML elements with utility classes. So no repeated class names or extra spaces are allowed here. And first I was thinking to use this library to toggle class names on and off, but outcome is not good enough |
If my string has space in it - I would like to be trimmed all incomming strings.
It does not make sense to have them here
The text was updated successfully, but these errors were encountered: