()
| 6 | * Uses [^<>]+ to prevent matching across nested brackets (e.g., "<3 <real.ref>" matches separately). |
| 7 | */ |
| 8 | export function createReferencePattern(): RegExp { |
| 9 | return new RegExp( |
| 10 | `${REFERENCE.START}([^${REFERENCE.START}${REFERENCE.END}]+)${REFERENCE.END}`, |
| 11 | 'g' |
| 12 | ) |
| 13 | } |
| 14 | |
| 15 | /** |
| 16 | * Creates a regex pattern for matching environment variables {{variable}} |
no outgoing calls
no test coverage detected