(value: T)
| 130 | } |
| 131 | |
| 132 | export function decodeEncoding<T>(value: T) { |
| 133 | if (typeof value !== 'string') { |
| 134 | return value; |
| 135 | } |
| 136 | |
| 137 | const results = value.match(/^b64::(.+)::46b$/); |
| 138 | |
| 139 | if (results) { |
| 140 | return base64ToUtf8(results[1]); |
| 141 | } |
| 142 | |
| 143 | return value; |
| 144 | } |
| 145 | |
| 146 | export function extractNunjucksTagFromCoords( |
| 147 | coordinates: { left: number; top: number }, |
nothing calls this directly
no test coverage detected