Skip to content

Commit

Permalink
Fix cd '/Users/elizavetaegorova/Documents/filters-downloader'
Browse files Browse the repository at this point in the history
  • Loading branch information
jellizaveta committed Dec 3, 2024
1 parent eae8b8e commit 3c808c1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion __tests__/filters-downloader.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ Context:
expect(() => FiltersDownloader.resolveConditions(
rules,
FilterCompilerConditionsConstants,
)).toThrowError(new Error(`Invalid directives: Found unexpected condition end: '!#endif'
)).toThrowError(new Error(`Found unexpected condition end: '!#endif'
Context:
\talways_included_rule
\tif_adguard_included_rule
Expand Down
2 changes: 1 addition & 1 deletion src/filters-downloader-creator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -584,7 +584,7 @@ const FiltersDownloaderCreator = (FileDownloadWrapper: IFileDownloader): IFilter
} else if (rule.indexOf(CONDITION_DIRECTIVE_END) === 0) {
// Found !#endif without !#if
errorMessage = createErrorMessage(
'Invalid directives: Found unexpected condition end:',
'Found unexpected condition end:',
rule,
context,
urlOrigin,
Expand Down

0 comments on commit 3c808c1

Please sign in to comment.