Skip to content

Commit

Permalink
Fix wrong regex check (#3346)
Browse files Browse the repository at this point in the history
  • Loading branch information
edoren authored Jan 4, 2025
1 parent 690094d commit 6b7b310
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/language-service/src/schemas/schemaService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export class SchemaServiceForIncludes {
if (relatedPathToSchemaMapping) {
const id = `http://schemas.home-assistant.io/${relatedPathToSchemaMapping.key}`;
let absolutePath = fs.realpathSync.native(haFiles[sourceFile].filename);
absolutePath = absolutePath.replace(new RegExp("\\", "g"), "/");
absolutePath = absolutePath.replace(/\\/g, "/");
const fileass = encodeURI(absolutePath);
let resultEntry = results.find((x) => x.uri === id);

Expand Down

0 comments on commit 6b7b310

Please sign in to comment.