]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
ignore case (#25373)
authordenisx <github@denisx.ru>
Sun, 21 Jan 2018 19:51:49 +0000 (22:51 +0300)
committerXhmikosR <xhmikosr@gmail.com>
Sun, 21 Jan 2018 19:51:49 +0000 (21:51 +0200)
Less on 2 symbols

js/src/util.js

index 4dde77048f1ac5eb683152da0e73b2811720c6f9..6e32e955d04a06a63d6cfa9493fa467ff3773c14 100644 (file)
@@ -20,7 +20,7 @@ const Util = (($) => {
 
   // Shoutout AngusCroll (https://goo.gl/pxwQGp)
   function toType(obj) {
-    return {}.toString.call(obj).match(/\s([a-zA-Z]+)/)[1].toLowerCase()
+    return {}.toString.call(obj).match(/\s([a-z]+)/i)[1].toLowerCase()
   }
 
   function getSpecialTransitionEndEvent() {