Issue #134 Improve xmlns parsing#135
Conversation
|
Thanks for the pull request. UPDATE - I see it is a Samsung cameras. I've not tested against Samsung so thank you for your contribution |
|
Help. I'm trying to test the regex change using the online RegEx tester at regex101.com and also in jsconsole. I'm not sure how your new new regex works. You are trying to remove xmlns from the following
I noticed the xmlns entries do not have Quote Marks (speech marks) in then. The regex is still looking for the quotes.
So I'm not sure how it works. Now it may be that I'm just reading it wrong so could you help with some extra info please? |
|
Sure, <Parent xmlns:ns1="url1">
<Child Dialect="xmlns:ns2=url2"/>
</Parent>
<Parent xmlns:ns3="url3">
<Child Dialect="xmlns:ns4=url4"/>
</Parent>the old Regex will match xmlns:ns1 correctly with while the new Regex accepts all characters that are before As such, xmlns:ns=url won't be replaced as it does not match. |
|
Thankyou for the explanation. Commit merged and thankyou for taking the time to find the bug and fix it and submit a PR. I had assumed the regex was trying to remove namespaces from the Topic Dialect string too. That is what confused me. |
Permit to remove xmlns in the Dialect of a PullMessagesResponse like the following: