mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2024-11-22 04:55:33 +03:00
Fix variable
This commit is contained in:
parent
814005021c
commit
0545aeff3f
1 changed files with 3 additions and 2 deletions
|
@ -43,8 +43,9 @@ class Logs extends Component {
|
|||
const { userRules } = this.props.filtering;
|
||||
const lineEnding = !endsWith(userRules, '\n') ? '\n' : '';
|
||||
const baseRule = `||${domain}^$important`;
|
||||
const blockingRule = type === 'block' ? `@@${baseRule}` : baseRule;
|
||||
const unblockingRule = type === 'block' ? baseRule : `@@${baseRule}`;
|
||||
const baseUnblocking = `@@${baseRule}`;
|
||||
const blockingRule = type === 'block' ? baseUnblocking : baseRule;
|
||||
const unblockingRule = type === 'block' ? baseRule : baseUnblocking;
|
||||
const preparedBlockingRule = new RegExp(`(^|\n)${escapeRegExp(blockingRule)}($|\n)`);
|
||||
const preparedUnblockingRule = new RegExp(`(^|\n)${escapeRegExp(unblockingRule)}($|\n)`);
|
||||
|
||||
|
|
Loading…
Reference in a new issue