mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
Fix lint
This commit is contained in:
parent
101b50486c
commit
e7243261f2
@ -40,7 +40,10 @@ const matchBeginningOfWords = (str) => {
|
||||
|
||||
export function normalizeWhitespace(str) {
|
||||
// delete the first character if it is !, @ or #
|
||||
return str.replace(/^([!@#])/, '').replace(/\s+/g, ' ').trim()
|
||||
return str
|
||||
.replace(/^([!@#])/, '')
|
||||
.replace(/\s+/g, ' ')
|
||||
.trim()
|
||||
}
|
||||
|
||||
export function escapeSpecialCharacters(str) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user