Skip to content

update regex to avoid incorrect match#2

Open
xiaoyual666 wants to merge 1 commit into
Varin6:masterfrom
xiaoyual666:master
Open

update regex to avoid incorrect match#2
xiaoyual666 wants to merge 1 commit into
Varin6:masterfrom
xiaoyual666:master

Conversation

@xiaoyual666
Copy link
Copy Markdown

@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