Returns a new array which only includes files that match the given pattern.
(pattern: string)
| 17 | export class PullApproveStringArray extends Array<string> { |
| 18 | /** Returns a new array which only includes files that match the given pattern. */ |
| 19 | include(pattern: string): PullApproveStringArray { |
| 20 | return new PullApproveStringArray(...this.filter((s) => getOrCreateGlob(pattern).match(s))); |
| 21 | } |
| 22 | |
| 23 | /** Returns a new array which only includes files that did not match the given pattern. */ |
| 24 | exclude(pattern: string): PullApproveStringArray { |
nothing calls this directly
no test coverage detected