Skip to content

Commit

Permalink
Allow for CRLF in the regex that looks for references to files (fixes…
Browse files Browse the repository at this point in the history
… issue #12)
  • Loading branch information
RinkeHoekstra committed Mar 29, 2024
1 parent dfb4a18 commit 9c01cae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -795,7 +795,7 @@ export function activate(context: vscode.ExtensionContext) {
let document = editor.document ;

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

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

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

Expand Down

0 comments on commit 9c01cae

Please sign in to comment.