@intlayer/core
Version:
Includes core Intlayer functions like translation, dictionary, and utility functions shared across multiple packages.
11 lines (9 loc) • 353 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
exports.getInsertionValues = getInsertionValues;
//# sourceMappingURL=getInsertionValues.cjs.map