/^([0-9])\.([0-9])\.?([0-9])?\.?([0-9])?$/
Which assumes that each division in the jQuery version string is a single digit. jQuery 1.10 breaks this assumption.
The correct regular expression to use is:
/^([0-9]+)\.([0-9]+)\.?([0-9]+)?\.?([0-9]+)?$/
Any chance you guys can fix this regex and post a new version?
Cheers!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.