Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Tirokk committed Jan 21, 2021
1 parent 101b504 commit e724326
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion backend/src/schema/resolvers/searches/queryString.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit e724326

Please sign in to comment.