remove non alphanumeric from chatroom generation
This commit is contained in:
parent
a483e1cd45
commit
905093288d
|
@ -3,7 +3,7 @@ import { uniqBy, length } from 'ramda'
|
|||
|
||||
const { utils } = web3
|
||||
|
||||
export const generateChatRoom = title => `#status-${title.replace(/\s/g, '').toLowerCase()}`
|
||||
export const generateChatRoom = title => `#status-${title.replace(/\s/g, '').replace(/\W/g, '').toLowerCase()}`
|
||||
|
||||
export const formatProjectId = id => utils.toHex(id)
|
||||
const getFile = filePath => filePath.split('/').slice(-1)[0]
|
||||
|
|
Loading…
Reference in New Issue