File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -556,6 +556,13 @@ describe('Query parsing', () => {
556556 expect ( new Query ( 'short mode\nfull' ) . queryLayoutOptions . shortMode ) . toEqual ( false ) ;
557557 } ) ;
558558
559+ it . failing ( 'should cope with missing end-of-line character in query ending with continuation character' , ( ) => {
560+ // See https://github.com/obsidian-tasks-group/obsidian-tasks/issues/3137
561+ const query = new Query ( 'path includes query.md \\' ) ;
562+ expect ( query . filters . length ) . toEqual ( 1 ) ;
563+ expect ( query . filters [ 0 ] . instruction ) . toEqual ( 'path includes query.md' ) ;
564+ } ) ;
565+
559566 describe ( 'should include instruction in parsing error messages' , ( ) => {
560567 function getQueryError ( source : string ) {
561568 return new Query ( source , new TasksFile ( 'Example Path.md' ) ) . error ;
You can’t perform that action at this time.
0 commit comments