Skip to content

Commit

Permalink
Merge pull request #293 from AdguardTeam/update-description-of-specia…
Browse files Browse the repository at this point in the history
…l-character

update the description of the || special character
  • Loading branch information
el-termikael authored Aug 28, 2023
2 parents e69518f + a484e0a commit 7c84dcb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/general/ad-filtering/create-own-filters.md
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,8 @@ modifiers = [modifier0, modifier1[, ...[, modifierN]]]

### Special characters {#basic-rules-special-characters}

- **`*`** — a wildcard character. It is used to represent "any set of characters". This can also be an empty string or a string of any length.
- **`||`**matching the beginning of an address. With this character you do not have to specify a particular protocol and subdomain in address mask. It means, `||` stands for `http://*.`, `https://*.`, `ws://*.`, `wss://*.` at once.
- **`*`** — a wildcard character. It is used to represent any set of characters. This can also be an empty string or a string of any length.
- **`||`**an indication to apply the rule to the specified domain and its subdomains. With this character, you do not have to specify a particular protocol and subdomain in address mask. It means that `||` stands for `http://*.`, `https://*.`, `ws://*.`, `wss://*.` at once.
- **`^`** — a separator character mark. Separator character is any character, but a letter, a digit, or one of the following: `_` `-` `.` `%`. In this example separator characters are shown in bold: `http:`**`//`**`example.com`**`/?`**`t=1`**`&`**`t2=t3`. The end of the address is also accepted as separator.
- **`|`** — a pointer to the beginning or the end of address. The value depends on the character placement in the mask. For example, a rule `swf|` corresponds to `http://example.com/annoyingflash.swf` , but not to `http://example.com/swf/index.html`. `|http://example.org` corresponds to `http://example.org`, but not to `http://domain.com?url=http://example.org`.

Expand Down

0 comments on commit 7c84dcb

Please sign in to comment.