UNPKG

@intlayer/core

Version:

Includes core Intlayer functions like translation, dictionary, and utility functions shared across multiple packages.

10 lines 291 B
const getInsertionValues = (content) => { const regex = /{{\s*(\w+)\s*}}/g; const matches = [...content.matchAll(regex)]; if (matches.length === 0) return []; return matches.map((match) => match[1]); }; export { getInsertionValues }; //# sourceMappingURL=getInsertionValues.mjs.map