(text)
| 3 | // It finds all references matching {{site.data.*}} and return an array of them |
| 4 | |
| 5 | export default function getLiquidDataReferences(text) { |
| 6 | return (text.match(patterns.dataReference) || []).map((ref) => { |
| 7 | const cleaned = ref.replace(/\.+\//g, '').replace('{% data', '').replace('%}', '').trim() |
| 8 | |
| 9 | return `site.data.${cleaned}` |
| 10 | }) |
| 11 | } |
nothing calls this directly
no outgoing calls
no test coverage detected