Permalink
Browse files

tolerate whitespace after drawer block start

Permit some white space after the block eg: `':DRAWER:   '`
  • Loading branch information...
ddlsmurf committed Sep 4, 2017
1 parent b267523 commit 4d9d96e2179b9b6a3ea28e738f63310190800c72
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/org-mode-parser.js
View
@@ -229,7 +229,7 @@ var parseBigString=function (data){
var deadlineRE=/DEADLINE:\s*<(\d+)\-(\d+)\-(\d+)/;
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 drawerENDRE=/\s*:END:/;
var singlePropertyMatcherRE=/^\s*:(.*?):\s*(.*?)\s*$/;

0 comments on commit 4d9d96e

Please sign in to comment.