Closed m-radzikowski closed 1 year ago
We're glad you find this project helpful. We'll try to address this issue ASAP. You can vist https://solothought.com to know recent features. Don't forget to star this repo.
I believe this problem exists with not only jPath but tagName as well. I believe it should be a small fix.
No, actually, the tagName
does not contain a trailing slash from what I've checked.
Description
jPath in `updateTag()` callback for self closing tag ends with `/`, which I doubt is intended. Because of this, you need to check two different jPaths, with and without `/`, to accurately process tags that may be empty. ### InputCode
Output
expected data
additional info
Code works if the
skip
array is changed to:["doc.foo", "doc.foo/"]
because for the self-closing tag jPath ends with/
. But I think that's easy to miss and not intended to be so? If you write code wanting to skip particular path and you don't test it with both self-closing and not-self closing tag you will be surprised.Another workaround is to do:
Would you like to work on this issue?
Bookmark this repository for further updates. Visit SoloThought to know about recent features.