Regexp doesn't work when used in class attribute
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- javascript
- Domain
- tooling
Research direction
Reproduce the reported comparison using the HTML snippets in the issue and inspect the HTML differ entry point that processes class attributes and regular expressions. Done means the regular expression works in a class attribute while preserving the other classes shown in the example.
Written by the indexing model from the issue text.
Description
I have the following:
<div class="popup popup popup_theme_ffffff other-classes">
and tried
<div class="{{(popup\s)?}} popup popup_theme_ffffff other-classes">
but it looks like it does not work at all.
How to make it works?
- Dominant language
- JavaScript
- Stars
- 217
- Forks
- 45
- PR merge metrics
- No merged PRs in 30d
Getting set up
We have not checked this project's setup files yet. Start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from bem/html-differ
-
Difficulty 2/5 1-3 hours Newbie friendliness 35/100
bem/html-differ#175 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
bem/html-differ#173 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 35/100
bem/html-differ#171 · 1 comment · 3 reactions ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
bem/html-differ#170 · 2 comments · 1 reaction ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
bem/html-differ#169 · 1 comment ·
Similar issues
-
Design only Leadership Survey SLFS
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
bcgov/digital-journeys#2293 ·
-
Toolkit
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
Maintainers usually reply within 1 day
-
API Bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
ProjectSidewalk/SidewalkWebpage#5556 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
jessepollak/home#1454 ·
Maintainers usually reply within 1 day
-
Mend: dependency security vulnerability untriaged
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
opensearch-project/OpenSearch-Dashboards#12822 ·
Maintainers usually reply within 1 day