diff --git a/js/src/util.js b/js/src/util.js index 4dde77048f1a..6e32e955d04a 100644 --- a/js/src/util.js +++ b/js/src/util.js @@ -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() {