mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-22 04:26:23 +08:00
init: the first public commit for AFFiNE
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
const fixNewLines = /\r?\n|\r/g;
|
||||
|
||||
export function normalizeText(text: string) {
|
||||
return text
|
||||
.replace(fixNewLines, '\n')
|
||||
.split('\n')
|
||||
.map(x => x || ' ')
|
||||
.join('\n');
|
||||
}
|
||||
Reference in New Issue
Block a user