//#region ../@intlayer/cli/dist/esm/chokidar/dist/esm/utils/splitTextByLine.mjs
const splitTextByLines = (text) => {
	const splittedText = text.match(/[^\n]*\n|[^\n]*$/g) ?? [];
	if (splittedText.length > 0 && splittedText.at(-1) === "") splittedText.pop();
	return splittedText;
};

//#endregion
export { splitTextByLines };
//# sourceMappingURL=splitTextByLine.mjs.map