We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f886f71 commit 28ea518Copy full SHA for 28ea518
1 file changed
select2.js
@@ -1739,7 +1739,7 @@ the specific language governing permissions and limitations under the Apache Lic
1739
attrs = style.split(';');
1740
for (i = 0, l = attrs.length; i < l; i = i + 1) {
1741
matches = attrs[i].replace(/\s/g, '')
1742
- .match(/width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i);
+ .match(/[^-]width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i);
1743
if (matches !== null && matches.length >= 1)
1744
return matches[1];
1745
}
0 commit comments