Update jquery-payment to v3.0.0 (3-0-stable)#7604
Merged
damianlegawiec merged 1 commit intospree:3-0-stablefrom Sep 30, 2016
Merged
Update jquery-payment to v3.0.0 (3-0-stable)#7604damianlegawiec merged 1 commit intospree:3-0-stablefrom
damianlegawiec merged 1 commit intospree:3-0-stablefrom
Conversation
houndci-bot
reviewed
Sep 30, 2016
| sep = ''; | ||
| } else if (mon.length === 2 || sep.length > 0) { | ||
| sep = ' / '; | ||
| } else if (mon.length === 1 && (mon !== '0' && mon !== '1')) { |
houndci-bot
reviewed
Sep 30, 2016
| groups = card.format.exec(num); | ||
| if (groups != null) { | ||
| groups.shift(); | ||
| if (groups == null) { |
houndci-bot
reviewed
Sep 30, 2016
| if (type) { | ||
| return _ref = cvc.length, __indexOf.call((_ref1 = cardFromType(type)) != null ? _ref1.cvcLength : void 0, _ref) >= 0; | ||
| card = cardFromType(type); | ||
| if (card != null) { |
houndci-bot
reviewed
Sep 30, 2016
| if (year < 70) { | ||
| year = "20" + year; | ||
| } else { | ||
| year = "19" + year; |
houndci-bot
reviewed
Sep 30, 2016
| prefix = prefix.toString().slice(0, 2); | ||
| year = prefix + year; | ||
| if (year < 70) { | ||
| year = "20" + year; |
houndci-bot
reviewed
Sep 30, 2016
| var month, prefix, year, _ref; | ||
| value = value.replace(/\s/g, ''); | ||
| _ref = value.split('/', 2), month = _ref[0], year = _ref[1]; | ||
| _ref = value.split(/[\s\/]+/, 2), month = _ref[0], year = _ref[1]; |
There was a problem hiding this comment.
Expected an assignment or function call and instead saw an expression.
houndci-bot
reviewed
Sep 30, 2016
| if (m2 > 2 && m1 !== 0) { | ||
| return $target.val("0" + m1 + " / " + m2); | ||
| } else { | ||
| return $target.val("" + val + " / "); |
houndci-bot
reviewed
Sep 30, 2016
| m1 = parseInt(val[0], 10); | ||
| m2 = parseInt(val[1], 10); | ||
| if (m2 > 2 && m1 !== 0) { | ||
| return $target.val("0" + m1 + " / " + m2); |
houndci-bot
reviewed
Sep 30, 2016
| e.preventDefault(); | ||
| return $target.val("0" + val + " / "); | ||
| return setTimeout(function() { | ||
| return $target.val("0" + val + " / "); |
houndci-bot
reviewed
Sep 30, 2016
|
|
||
| replaceFullWidthChars = function(str) { | ||
| var chars, chr, fullWidth, halfWidth, idx, value, _i, _len; | ||
| if (str == null) { |
houndci-bot
reviewed
Sep 30, 2016
| } | ||
| last = $target.val(); | ||
| $target.val(value); | ||
| if (cursor !== null && $target.is(":focus")) { |
houndci-bot
reviewed
Sep 30, 2016
| prevPair = last.slice(cursor - 1, +cursor + 1 || 9e9); | ||
| currPair = value.slice(cursor - 1, +cursor + 1 || 9e9); | ||
| digit = value[cursor]; | ||
| if (/\d/.test(digit) && prevPair === ("" + digit + " ") && currPair === (" " + digit)) { |
There was a problem hiding this comment.
Line is too long.
Mixed double and single quotes.
houndci-bot
reviewed
Sep 30, 2016
| } | ||
| if (typeof document !== "undefined" && document !== null ? (_ref = document.selection) != null ? typeof _ref.createRange === "function" ? _ref.createRange().text : void 0 : void 0 : void 0) { | ||
| return true; | ||
| if ((typeof document !== "undefined" && document !== null ? (_ref = document.selection) != null ? _ref.createRange : void 0 : void 0) != null) { |
There was a problem hiding this comment.
Line is too long.
Mixed double and single quotes.
Use '!==' to compare with 'null'.
houndci-bot
reviewed
Sep 30, 2016
| __slice = [].slice, | ||
| __indexOf = [].indexOf || function(item) { for (var i = 0, l = this.length; i < l; i++) { if (i in this && this[i] === item) return i; } return -1; }, | ||
| _this = this; | ||
| __indexOf = [].indexOf || function(item) { for (var i = 0, l = this.length; i < l; i++) { if (i in this && this[i] === item) return i; } return -1; }; |
There was a problem hiding this comment.
Line is too long.
Expected '{' and instead saw 'return'.
houndci-bot
reviewed
Sep 30, 2016
| // Generated by CoffeeScript 1.7.1 | ||
| (function() { | ||
| var $, cardFromNumber, cardFromType, cards, defaultFormat, formatBackCardNumber, formatBackExpiry, formatCardNumber, formatExpiry, formatForwardExpiry, formatForwardSlash, hasTextSelected, luhnCheck, reFormatCardNumber, restrictCVC, restrictCardNumber, restrictExpiry, restrictNumeric, setCardType, | ||
| var $, cardFromNumber, cardFromType, cards, defaultFormat, formatBackCardNumber, formatBackExpiry, formatCardNumber, formatExpiry, formatForwardExpiry, formatForwardSlashAndSpace, hasTextSelected, luhnCheck, reFormatCVC, reFormatCardNumber, reFormatExpiry, reFormatNumeric, replaceFullWidthChars, restrictCVC, restrictCardNumber, restrictExpiry, restrictNumeric, safeVal, setCardType, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Update old version (from 3 Sep 2013) to the latest release https://github.com/stripe/jquery.payment#mobile-recommendations.
Fixes #7596.