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

Comments

Projects
None yet
1 participant
@neocotic
Member

neocotic commented Feb 13, 2012

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

This comment has been minimized.

Show comment
Hide comment
@neocotic

neocotic Feb 13, 2012

Member

Fixed and works fine.

Member

neocotic commented Feb 13, 2012

Fixed and works fine.

@neocotic neocotic closed this Feb 13, 2012

@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