1
0
mirror of synced 2024-11-22 21:16:10 +03:00

width: copy option needs to ignore min-width and max-width. fixes #1557

This commit is contained in:
Igor Vaynberg 2013-07-27 10:02:27 -07:00
parent f886f716e2
commit 28ea518257

View File

@ -1739,7 +1739,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))/i);
.match(/[^-]width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i);
if (matches !== null && matches.length >= 1)
return matches[1];
}