mirror of
https://github.com/System-End/slack-end.git
synced 2026-04-19 22:05:10 +00:00
fix: data typing
This commit is contained in:
parent
7d6cb1e4f2
commit
6f0f885443
1 changed files with 2 additions and 2 deletions
|
|
@ -7,9 +7,9 @@ export function parseTextAndExtractUsers(text:string) {
|
|||
return text.split('|--------------------')[2].split('\n').filter(Boolean).map(e=>e.split("|").filter(Boolean).map(d=>d.trim().replace('✓ ', ''))).filter(e=>e.length > 1).map(d=> {
|
||||
return {
|
||||
username: d[0],
|
||||
days: d.slice(1)
|
||||
days: d.slice(1).filter(Boolean)
|
||||
}
|
||||
})
|
||||
}).filter(e=>!e.username.startsWith('---'))
|
||||
}
|
||||
export function getMetaInfo(text:string) {
|
||||
const [Rstatus, Rwrote] = text.split('-------------------\nEND OF TRANSMISSION')[1].split('---')[0].split('\n').filter(Boolean)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue