I have been trying to use query.simple-dtpicker.js within a Rails application. It works fine locally, but it is signaled as erroneous when the Rails 3 pipeline is used.
Specifically, Rails 3 minifies the JavaScript code. When minified, the code seems to produce an error. At first I thought it might be linked to the regex expression on line 221, which reads /^(\d{2,4})-/-/ (\d{1,2}):(\d{1,2})$/, and which should read /^(\d{2,4})-\/-\/ (\d{1,2}):(\d{1,2})$/ (i.e., the '/' characters need to be escaped...)
I was wondering has anyone encountered similar problems.
Hi,
I have been trying to use query.simple-dtpicker.js within a Rails application. It works fine locally, but it is signaled as erroneous when the Rails 3 pipeline is used.
Specifically, Rails 3 minifies the JavaScript code. When minified, the code seems to produce an error. At first I thought it might be linked to the regex expression on line 221, which reads /^(\d{2,4})-/-/ (\d{1,2}):(\d{1,2})$/, and which should read /^(\d{2,4})-\/-\/ (\d{1,2}):(\d{1,2})$/ (i.e., the '/' characters need to be escaped...)
I was wondering has anyone encountered similar problems.
regards,
Ciarán