(pattern)
| 64496 | } |
| 64497 | if (checkPattern(pattern)) { |
| 64498 | const rule = createRule(pattern, this._ignoreCase); |
| 64499 | this._added = true; |
| 64500 | this._rules.push(rule); |
| 64501 | } |
| 64502 | } |
| 64503 | // @param {Array<string> | string | Ignore} pattern |
| 64504 | add(pattern) { |
| 64505 | this._added = false; |
| 64506 | makeArray( |
| 64507 | isString2(pattern) ? splitPattern(pattern) : pattern |
| 64508 | ).forEach(this._addPattern, this); |
| 64509 | if (this._added) { |
| 64510 | this._initCache(); |
no test coverage detected