Skip to content

Commit

Permalink
Merge pull request #47 from kasperpedersen/bug/45-initial-fix
Browse files Browse the repository at this point in the history
Updated regex to only match document boundaries at the start of a line - Fixes #45
  • Loading branch information
jxson committed Jan 26, 2017
2 parents c130dfd + c486b61 commit 2ddc5aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ var pattern = '^(' +
optionalByteOrderMark +
'(= yaml =|---)' +
'$([\\s\\S]*?)' +
'(?:\\2|\\.\\.\\.)' +
'^(?:\\2|\\.\\.\\.)' +
'$' +
(process.platform === 'win32' ? '\\r?' : '') +
'(?:\\n)?)'
Expand Down

0 comments on commit 2ddc5aa

Please sign in to comment.