Skip to content

Commit

Permalink
tolerate whitespace after drawer block start
Browse files Browse the repository at this point in the history
Permit some white space after the block eg: `':DRAWER:   '`
  • Loading branch information
ddlsmurf committed Sep 4, 2017
1 parent b267523 commit 4d9d96e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/org-mode-parser.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ var parseBigString=function (data){
var deadlineRE=/DEADLINE:\s*<(\d+)\-(\d+)\-(\d+)/; var deadlineRE=/DEADLINE:\s*<(\d+)\-(\d+)\-(\d+)/;
var closedRE=/CLOSED:\s*<(\d+)\-(\d+)\-(\d+)\s*\w+/; var closedRE=/CLOSED:\s*<(\d+)\-(\d+)\-(\d+)\s*\w+/;


var drawerFinderRE=/\s*:([a-zA-Z_0-9]+):$/; var drawerFinderRE=/\s*:([a-zA-Z_0-9]+):\s*$/;
var property_startRE=/\s*:PROPERTIES:/; var property_startRE=/\s*:PROPERTIES:/;
var drawerENDRE=/\s*:END:/; var drawerENDRE=/\s*:END:/;
var singlePropertyMatcherRE=/^\s*:(.*?):\s*(.*?)\s*$/; var singlePropertyMatcherRE=/^\s*:(.*?):\s*(.*?)\s*$/;
Expand Down

0 comments on commit 4d9d96e

Please sign in to comment.