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

clean_class issue with numeric starting characters #22

Open
jameelmoses opened this issue May 3, 2019 · 1 comment
Open

clean_class issue with numeric starting characters #22

jameelmoses opened this issue May 3, 2019 · 1 comment
Labels

Comments

@jameelmoses
Copy link

A valid CSS class may not begin with a number. https://stackoverflow.com/questions/448981/which-characters-are-valid-in-css-class-names-selectors#answer-449000

Steps to reproduce:

<div class="{{ '123 Clean This Class & Stuff'|clean_class }}"></div>

Expected result:

<div class="clean-this-class-stuff"></div>

Actual result:

<div class="123-clean-this-class-stuff"></div>

@RobLoach
Copy link
Contributor

RobLoach commented May 3, 2019

Thanks for catching this one!

@RobLoach RobLoach added the bug label May 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants