New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changed Frontmatter regex pattern to allow for CRLF line endings. #14

merged 1 commit into from Jul 6, 2014


None yet
2 participants
Copy link

kieldoyle commented Jul 5, 2014

When creating pages or posts on the windows platform the .md files will use the CRLF line ending by default. Currently the regex in src/Yosymfony/Spress/ContentManager/Frontmatter.php only checks for the LF line ending which means that posts and pages do not appear to have frontmatter and will not be processed.

Altered the regex to account for both line ending types and now both CRLF and LF formatted files are processed.

@yosymfony yosymfony merged commit 12bed0a into spress:master Jul 6, 2014

2 checks passed

ci/scrutinizer Scrutinizer: No new issues — Tests: pending
continuous-integration/travis-ci The Travis CI build passed

This comment has been minimized.

Copy link

yosymfony commented Jul 6, 2014

Yeah! Thank you

yosymfony referenced this pull request Jul 6, 2014

yosymfony referenced this pull request Jul 6, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment