@intlayer/chokidar
Version:
Uses chokidar to scan and build Intlayer declaration files into dictionaries based on Intlayer configuration.
12 lines (10 loc) • 419 B
JavaScript
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
//#region src/utils/splitTextByLine.ts
const splitTextByLines = (text) => {
const splittedText = text.match(/[^\n]*\n|[^\n]*$/g) ?? [];
if (splittedText.length > 0 && splittedText.at(-1) === "") splittedText.pop();
return splittedText;
};
//#endregion
exports.splitTextByLines = splitTextByLines;
//# sourceMappingURL=splitTextByLine.cjs.map