-
-
Notifications
You must be signed in to change notification settings - Fork 79k
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
Add jQuery version check to existing jQuery presence check #14852
Conversation
060f78b
to
4956ee3
Compare
'+function ($) {', | ||
' var versionString = $.fn.jquery.split(\' \')[0]', | ||
' var version = versionString.match(/(\\d+)(?=\\.?)/g)', | ||
' if ((version[0] < 2 && version[1] < 9) || /1\\.9\\.0rc1|1\\.9\\.0b1/.test(versionString)) {', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps we could bump the minimum jQuery to 1.9.1 to avoid the RC/Beta complications?
4956ee3
to
c6c6dc2
Compare
@cvrebert Is that better? |
Yes. I believe we could also simplify the regex to just split on dots? |
c6c6dc2
to
1604af0
Compare
I believe this is as good as it gets 😄 |
Very nearly. 😄 Why is the |
Because of custom builds, see for example GitHub's jQuery build. It identifies itself with |
LGTM then. |
Travis failure is unrelated. |
Add jQuery version check to existing jQuery presence check
@cvrebert Should I add a ship list entry for this? |
Yup! |
I'm not sure about the section, would you mind adding it for me? 😁 |
Sure. |
Merci beaucoup. |
Fixes #14809.
Closes #14825.
/cc @cvrebert