Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Small refactor of the URL replacement code #14
I ran some speed tests on the method currently used by Amplify to replace URL parameters with passed in data. I found using a regular expression replace with a callback was faster than redefining RegExp's for each item in a data structure.
You can see my perf tests here: http://jsperf.com/quick-templates-compared/2
These two commits handle the change to the faster method.