@intlayer/core
Version:
Includes core Intlayer functions like translation, dictionary, and utility functions shared across multiple packages.
12 lines (10 loc) • 463 B
JavaScript
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
//#region src/transpiler/insertion/getInsertionValues.ts
const getInsertionValues = (content) => {
const matches = [...content.matchAll(/{{\s*(.*?)\s*}}/g)];
if (matches.length === 0) return [];
return [...new Set(matches.map((match) => match[1].trim()))].filter(Boolean);
};
//#endregion
exports.getInsertionValues = getInsertionValues;
//# sourceMappingURL=getInsertionValues.cjs.map