Skip to content

Commit

Permalink
Remove allowance for whitespace in noteaser tag
Browse files Browse the repository at this point in the history
  • Loading branch information
dmsnell committed Jul 3, 2017
1 parent 5def46b commit 065d158
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions blocks/api/post.pegjs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ WP_Block
/ WP_Block_Html

WP_Tag_More
= "<!--" WS* "more" customText:(WS+ text:$((!(WS* "-->") .)+) { return text })? WS* "-->" noTeaser:(WS* WP_Tag_NoTeaser)?
= "<!--" WS* "more" customText:(WS+ text:$((!(WS* "-->") .)+) { return text })? WS* "-->" noTeaser:(WS* "<!--noteaser-->")?
{ return {
blockName: 'wp:core/more',
attrs: {
Expand All @@ -38,9 +38,6 @@ WP_Tag_More
rawContent: ''
} }

WP_Tag_NoTeaser
= "<!--" WS* "noteaser" WS* "-->"

WP_Block_Void
= "<!--" WS+ "wp:" blockName:WP_Block_Name WS+ attrs:(a:WP_Block_Attributes WS+ {
/** <?php return $a; ?> **/
Expand Down

0 comments on commit 065d158

Please sign in to comment.