Skip to content
This repository has been archived by the owner on Aug 21, 2018. It is now read-only.

Matcher class freaks out on line breaks in the meta data #25

Open
wirtsi opened this issue Aug 8, 2013 · 0 comments
Open

Matcher class freaks out on line breaks in the meta data #25

wirtsi opened this issue Aug 8, 2013 · 0 comments

Comments

@wirtsi
Copy link

wirtsi commented Aug 8, 2013

For me the formatting of the number yielded wrong results ... after a lot of tracing around, I found out that the Matcher class has problems with the line breaks present in the meta data files. Changing the constructor to

    $this->pattern = str_replace(array("\r\n", "\r", "\n", " "),'',$pattern);

fixed it. Not sure if there are some regexps which rely on the space, then this would break them

wirtsi

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant