Merge pull request #2925 from JakubValtar/bugfix-preproc-size-regex

Preprocessor now accepts whitespace after height (fixes #2924)
This commit is contained in:
Ben Fry
2014-11-03 18:53:44 -05:00

View File

@@ -167,7 +167,7 @@ public class PdePreprocessor {
* and pasting from the reference.
*/
public static final String SIZE_REGEX =
"(?:^|\\s|;)size\\s*\\(\\s*([^\\s,]+)\\s*,\\s*([^\\s,\\)]+),?\\s*([^\\)]*)\\s*\\)\\s*\\;";
"(?:^|\\s|;)size\\s*\\(\\s*([^\\s,]+)\\s*,\\s*([^\\s,\\)]+)\\s*,?\\s*([^\\)]*)\\s*\\)\\s*\\;";
//"(?:^|\\s|;)size\\s*\\(\\s*(\\S+)\\s*,\\s*([^\\s,\\)]+),?\\s*([^\\)]*)\\s*\\)\\s*\\;";