Skip to content
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

Ensure template data is lower case #66

Closed
neocotic opened this issue Feb 13, 2012 · 1 comment
Closed

Ensure template data is lower case #66

neocotic opened this issue Feb 13, 2012 · 1 comment
Assignees
Labels
Milestone

Comments

@neocotic
Copy link
Member

I just noticed that some properties of the template data created by jQuery URL Parser is not in lower case (e.g. userInfo). Since I'm busy working on #20 and #64 I thought I'd document it here so I don't forget.

Solution: After building the data object, iterate over the data object and create a lower case version of any properties containing upper case characters (do not delete the original in case it's required internally by another framework.

for own key, value of data when /[A-Z]+/.test key
  data[key.toLowerCase()] = value
neocotic added a commit that referenced this issue Feb 13, 2012
neocotic added a commit that referenced this issue Feb 13, 2012
@neocotic
Copy link
Member Author

Fixed and works fine.

@ghost ghost assigned neocotic Feb 13, 2012
@neocotic neocotic added the bug label Nov 15, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant