This commit is contained in:
Wolfgang Huß 2021-01-21 13:10:58 +01:00
parent 101b50486c
commit e7243261f2

View File

@ -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) {