-
Notifications
You must be signed in to change notification settings - Fork 109
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix #14 by encoding non-alpha characters in attribute keys #37
Conversation
@cdhowie what's the status on this fix? |
Status is "should work" but OP of #14 hasn't reported any results using it. |
This was fixed incorrectly by 7222db6. I am rebasing my patch against v7.1.0 and replacing the changes introduced by this commit. |
@cdhowie will you be updating this PR with your changes? |
@cludden I plan to but have not had time lately to work on it, and the issue doesn't affect us so it's not a priority ATM. |
What was wrong with the 7222db6 change? Just wondering if it is preference or a situation that is not being handled. This change looks to be doing the same thing, except it is replacing the characters with a 4 digit equivalent where the 7222db6 is just removing them. Also, this change looks like it would break expression document paths. |
@C45tr0 The problem arises when you strip out special characters, leaving two attributes with the same cleaned key. Encoding each non-ASCII character as a number prevents this, as every possible attribute key is guaranteed a distinct representation as a cleaned key. For example, consider the keys |
@cdhowie Fair point. I took the liberty to make these changes after the Document paths changes. I will be submitting a PR with that shortly. |
Superseded by #115. |
No description provided.