Skip to content

Commit

Permalink
Allow empty tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
xuhcc authored and John Hobbs committed Oct 30, 2020
1 parent 819d1cb commit f7e547b
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions jsTodoTxt.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,6 @@ function TodoTxtItem ( line, extensions ) {
Parse a string into this object.
\param line A string in todo.txt format to parse.
\throws Exception On an empty task.
*/
this.parse = function ( line ) {
var date_pieces;
Expand Down Expand Up @@ -232,9 +230,6 @@ function TodoTxtItem ( line, extensions ) {
line = line.replace( TodoTxt._trim_re, '');

this.text = line;

// If we have an empty task, not much point in creating an object.
if( "" === this.text ) { throw new Exception( "Empty Task" ); }
};

this._getNumOfNulls = function( lhs, rhs ) {
Expand Down

0 comments on commit f7e547b

Please sign in to comment.