Skip to content

Commit

Permalink
Fix iOS version regex
Browse files Browse the repository at this point in the history
  • Loading branch information
samclarke committed Mar 9, 2015
1 parent ba0433f commit 9145b52
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lib/browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,8 @@ define(function (require, exports) {

// iOS 5+ supports content editable
if (exports.ios) {
isUnsupported = !/OS [5-9](_\d)+ like Mac OS X/i.test(USER_AGENT);
// Block any version <= 4_x(_x)
isUnsupported = /OS [0-4](_\d)+ like Mac/i.test(USER_AGENT);
}

// FireFox does support WYSIWYG on mobiles so override
Expand Down

0 comments on commit 9145b52

Please sign in to comment.