@intlayer/core
Version:
Includes core Intlayer functions like translation, dictionary, and utility functions shared across multiple packages.
10 lines (9 loc) • 334 B
JavaScript
//#region src/transpiler/insertion/getInsertionValues.ts
const getInsertionValues = (content) => {
const matches = [...content.matchAll(/{{\s*(\w+)\s*}}/g)];
if (matches.length === 0) return [];
return matches.map((match) => match[1]);
};
//#endregion
export { getInsertionValues };
//# sourceMappingURL=getInsertionValues.mjs.map