1
0
mirror of synced 2024-11-26 23:06:02 +03:00

when resolving width use case insensitive expression. fixes #1065

This commit is contained in:
Igor Vaynberg 2013-04-08 16:25:46 -07:00
parent de07ba2b16
commit 511c1b8728

View File

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