fix:split emoji and rare character #50
This commit is contained in:
@@ -51,4 +51,12 @@ export function getUUID(): string {
|
||||
return (((1 + Math.random()) * 0x10000) | 0).toString(16).substring(1)
|
||||
}
|
||||
return (S4() + S4() + '-' + S4() + '-' + S4() + '-' + S4() + '-' + S4() + S4() + S4())
|
||||
}
|
||||
|
||||
export function splitText(text: string): string[] {
|
||||
const data: string[] = []
|
||||
for (const t of text) {
|
||||
data.push(t)
|
||||
}
|
||||
return data
|
||||
}
|
||||
Reference in New Issue
Block a user