(owner: Owner, connection: string)
| 47 | |
| 48 | export const accountPolicyPattern = |
| 49 | (owner: Owner, connection: string) => |
| 50 | (displayPattern: string): string => { |
| 51 | if (displayPattern === "*") return "*"; |
| 52 | const firstDot = displayPattern.indexOf("."); |
| 53 | if (firstDot === -1) return `${displayPattern}.${owner}.${connection}.*`; |
| 54 | const integration = displayPattern.slice(0, firstDot); |
| 55 | const rest = displayPattern.slice(firstDot + 1); |
| 56 | return `${integration}.${owner}.${connection}.${rest}`; |
| 57 | }; |
no outgoing calls
no test coverage detected