jacshore / epubcheck

Automatically exported from code.google.com/p/epubcheck
MIT License
0 stars 0 forks source link

Regular expression for SVG preserveAspectRatio not correct #141

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
PROBLEM:

The regular expression for preserveAspectRatio does not take the fact that the 
space before meet or slice is optional.

METHOD:

Check the attached epub file

RESULT:

Gives incorrect messages about the svg files

ADDITIONAL INFO:

Error message:

ERROR: document/media/i5.svg(9): value of attribute "preserveAspectRatio" is 
invalid; must be a string matching the regular expression 
"\s*(none|xMinYMin|xMidYMin|xMaxYMin|xMinYMid|xMidYMid|xMaxYMid|xMinYMax|xMidYMa
x|xMaxYMax)\s+(meet|slice)?\s*"

The regex should have been:
"\s*(none|xMinYMin|xMidYMin|xMaxYMin|xMinYMid|xMidYMid|xMaxYMid|xMinYMax|xMidYMa
x|xMaxYMax)(\s+meet|\s+slice)?\s*"

Original issue reported on code.google.com by markded...@gmail.com on 20 Nov 2011 at 2:27

GoogleCodeExporter commented 8 years ago

Original comment by markded...@gmail.com on 20 Nov 2011 at 2:29

Attachments:

GoogleCodeExporter commented 8 years ago

Original comment by markus.g...@gmail.com on 13 Dec 2011 at 8:43

GoogleCodeExporter commented 8 years ago

Original comment by markus.g...@gmail.com on 13 Dec 2011 at 8:46

GoogleCodeExporter commented 8 years ago

Original comment by markus.g...@gmail.com on 20 Dec 2011 at 9:35

GoogleCodeExporter commented 8 years ago
This issue was closed by revision r291.

Original comment by markus.g...@gmail.com on 20 Dec 2011 at 9:48