From db70164d139c2cc331c671bec24547bd19bee8ac Mon Sep 17 00:00:00 2001 From: denisx Date: Sun, 21 Jan 2018 22:51:49 +0300 Subject: [PATCH] ignore case (#25373) Less on 2 symbols --- js/src/util.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/src/util.js b/js/src/util.js index 4dde77048f..6e32e955d0 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() {