Skip to content

Commit 511c1b8

Browse files
committed
when resolving width use case insensitive expression. fixes select2#1065
1 parent de07ba2 commit 511c1b8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

select2.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1567,7 +1567,7 @@ the specific language governing permissions and limitations under the Apache Lic
15671567
attrs = style.split(';');
15681568
for (i = 0, l = attrs.length; i < l; i = i + 1) {
15691569
matches = attrs[i].replace(/\s/g, '')
1570-
.match(/width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/);
1570+
.match(/width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i);
15711571
if (matches !== null && matches.length >= 1)
15721572
return matches[1];
15731573
}

0 commit comments

Comments
 (0)