Skip to content

Commit

Permalink
fix jsdeliver complaining unescaped unicode chars
Browse files Browse the repository at this point in the history
  • Loading branch information
hgoebl committed Jul 15, 2014
1 parent 43fd282 commit 241099b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion generate/mobile-detect.template.js
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,7 @@
// self::MOBILE_GRADE_(.) / '$1'
// , self::VERSION_TYPE_FLOAT / (nothing)
// isIOS() / os('iOS')
// [reg] / (nothing) <-- jsdelivr complaining about unescaped unicode character U+00AE
var $isMobile = t.mobile() !== null;

if (
Expand All @@ -206,7 +207,7 @@
// Windows Phone 7-7.5 - Tested on the HTC Surround (7.0) HTC Trophy (7.5), LG-E900 (7.5), Nokia Lumia 800
t.version('Windows Phone OS')>=7.0 ||

// Blackberry 7 - Tested on BlackBerry® Torch 9810
// Blackberry 7 - Tested on BlackBerry Torch 9810
// Blackberry 6.0 - Tested on the Torch 9800 and Style 9670
t.is('BlackBerry') && t.version('BlackBerry')>=6.0 ||
// Blackberry Playbook (1.0-2.0) - Tested on PlayBook
Expand Down
3 changes: 2 additions & 1 deletion mobile-detect.js
Original file line number Diff line number Diff line change
Expand Up @@ -413,6 +413,7 @@
// self::MOBILE_GRADE_(.) / '$1'
// , self::VERSION_TYPE_FLOAT / (nothing)
// isIOS() / os('iOS')
// [reg] / (nothing) <-- jsdelivr complaining about unescaped unicode character U+00AE
var $isMobile = t.mobile() !== null;

if (
Expand All @@ -430,7 +431,7 @@
// Windows Phone 7-7.5 - Tested on the HTC Surround (7.0) HTC Trophy (7.5), LG-E900 (7.5), Nokia Lumia 800
t.version('Windows Phone OS')>=7.0 ||

// Blackberry 7 - Tested on BlackBerry® Torch 9810
// Blackberry 7 - Tested on BlackBerry Torch 9810
// Blackberry 6.0 - Tested on the Torch 9800 and Style 9670
t.is('BlackBerry') && t.version('BlackBerry')>=6.0 ||
// Blackberry Playbook (1.0-2.0) - Tested on PlayBook
Expand Down

0 comments on commit 241099b

Please sign in to comment.