( wildcard: string, rules: string[], )
| 48 | } |
| 49 | |
| 50 | export function expandWildcardRules( |
| 51 | wildcard: string, |
| 52 | rules: string[], |
| 53 | ): string[] { |
| 54 | const prefix = wildcard.slice(0, -1); |
| 55 | return rules.filter(rule => rule.startsWith(prefix)); |
| 56 | } |
no outgoing calls
no test coverage detected