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

update regex to avoid incorrect match #2

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

Conversation

xiaoyual666
Copy link

@xiaoyual666 xiaoyual666 commented Sep 4, 2017

with the original regex, it will match some incorrect classes. For example, if the itemP is ".abc", then ".abc2" will also be considered as a match.
This bug will cause the incorrect CSS text in demo. For example, if you click on <a href="#" class="hbtn hb-fill-middle">Slide Middle</a>, it will show CSS text for class ".hb-fill-middle2:hover"

with the original regex, it will match some incorrect classes. For example, if the itemP is ".abc", then ".abc2" will also be considered as a match.
This bug will cause the incorrect CSS text in demo. For example, if you click on <a href="#" class="hbtn hb-fill-middle">Slide Middle</a>, it will show CSS text for class ".hb-fill-middle2:hover"
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