Quote matching issue in ignoreCustomFragments
See original GitHub issueGiven this Handlebars template as input:
<span class="{{classes}}"></span>
When removeAttributeQuotes: true
is set, the quotes will (presumably rightfully) be removed giving this result:
<span class={{classes}}></span>
To keep the quotes (because the variable can resolve to a value containing spaces) I added ignoreCustomFragments: [/"\{\{.*?\}\}"/]
, which results in double double-quotes like in the result:
<span class=""{{classes}}""></span>
Is that expected? It seems the value of removeAttributeQuotes
has no effect on these quotes.
Issue Analytics
- State:
- Created 6 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
minhtml - npm
ignoreCustomFragments, Array of regex'es that allow to ignore certain fragments, when matched (e.g. <?php ... ?> , {{ ... }} , etc.) ...
Read more >Of Mice and Men Quote Identification Flashcards - Quizlet
Study with Quizlet and memorize flashcards containing terms like Who said, "Someday—we're gonna get the jack together and we're gonna have a little...
Read more >Untitled
L word quiz who are you. Lito sy video, God and marriage quotes, Don't know where i stand in my relationship? Future worksheet...
Read more >https://raw.githubusercontent.com/assemblylanguage...
unarySlash;\n var attrs = match.attrs.map(function (args) {\n var name, value, customOpen, customClose, customAssign, quote;\n var ncp = 7; ...
Read more >Untitled
That's one small step for man quote, Define bender gestalt test, Mckeen fkbpl, ... Isr para 2015, Home decor colour matching, Carabao tourism...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I see - that would be the issue as that extra whitespace shouldn’t be there.
Let me see if I can fix that.
@silverwind thanks for the information and sorry for the delay.
I would be grateful if you can verify whether #807 addresses your particular use case.