Skip to content

Commit 9c01cae

Browse files
committed
Allow for CRLF in the regex that looks for references to files (fixes issue #12)
1 parent dfb4a18 commit 9c01cae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/extension.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -795,7 +795,7 @@ export function activate(context: vscode.ExtensionContext) {
795795
let document = editor.document ;
796796

797797
// Try to obtain YAML configuration from comments at the top of the query
798-
const re = /^(#.+\n)+/;
798+
const re = /^(#.+\r?\n)+/;
799799
const m = document.getText().match(re);
800800
var shaclFileName;
801801

@@ -915,7 +915,7 @@ export function activate(context: vscode.ExtensionContext) {
915915
const query = document.getText();
916916

917917
// Try to obtain YAML configuration from comments at the top of the query
918-
const re = /^(#.+\n)+/;
918+
const re = /^(#.+\r?\n)+/;
919919
const m = query.match(re);
920920
var dataFileName;
921921

0 commit comments

Comments
 (0)