mirror of
https://gitlab.com/ArkHost/HelixNotes.git
synced 2026-09-19 17:37:29 +02:00
8 lines
240 B
TypeScript
8 lines
240 B
TypeScript
export function encodeNoteDragPaths(paths: Iterable<string>): string {
|
|
return [...paths].join("\n");
|
|
}
|
|
|
|
export function decodeNoteDragPaths(payload: string): string[] {
|
|
return payload.split(/\r?\n/).filter((path) => path.length > 0);
|
|
}
|