Skip to content

Settings: author name filters

lifegpc edited this page Jun 14, 2022 · 4 revisions

A list of filters to filter author's name.

Valid value

Array

Examples

{
    "author-name-filters": [
        "@",
        { "type": "simple", "rule": "🌸" },
        { "type": "regex", "rule": ".?お仕事募集中" }
    ]
}

"@" are same as { "type": "simple", "rule": "@" }.
Rule types:

  1. simple: In this mode, all character after the rightmost match of the pattern will be removed. (Only applied once and the rule pattern also be removed.)
  2. regex: All matched pattern will be removed.

Once a rule have effected, the other rules after this rule will be ignored.

Original author name Filtered author name
moco🌸お仕事募集中 moco
mocoお仕事募集中🌸 mocoお仕事募集中
moco/お仕事募集中 moco
Clone this wiki locally