While the MatcherPattern is rather complex, we only want to support a subset in this configuration, which eases merging patterns a lot.

interface ReducedMatcherPattern {
    attributes?: AttributesType;
    classes?: boolean;
    name?: string | RegExp;
}

Hierarchy (view full)

Properties

attributes?: AttributesType
classes?: boolean

While MatcherPattern allows, for example, defining a regular expression for matching classes, we are only interested in allowing or disallowing classes in general in the context of General RichText Support (GRS).

name?: string | RegExp