PLT-4821 Fix highlighting of wildcard search terms. (#4976)
Этот коммит содержится в:
коммит произвёл
Joram Wilander
родитель
c3f60d7ced
Коммит
96697c8cf7
@@ -395,7 +395,13 @@ function parseSearchTerms(searchTerm) {
|
||||
}
|
||||
|
||||
// remove punctuation from each term
|
||||
terms = terms.map((term) => term.replace(puncStart, '').replace(puncEnd, ''));
|
||||
terms = terms.map((term) => {
|
||||
term.replace(puncStart, '');
|
||||
if (term.charAt(term.length - 1) !== '*') {
|
||||
term.replace(puncEnd, '');
|
||||
}
|
||||
return term;
|
||||
});
|
||||
|
||||
return terms;
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user