Skip to content

Commit

Permalink
fix highlighting of nan characters
Browse files Browse the repository at this point in the history
  • Loading branch information
konolak committed Jan 7, 2025
1 parent 513ecbc commit 0fc78f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/portal/pipes/highlight.pipe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export class HighlightSearchPipe implements PipeTransform {

const LETTER_EXPRESSION = /^\p{L}$/u;
const isLetter = (character) => {
return character && (LETTER_EXPRESSION.test(character) || !isNaN(character) || character === '.' || character === ',');
return character && (LETTER_EXPRESSION.test(character) || !isNaN(character));
};

// Replace coded umlauts
Expand Down

0 comments on commit 0fc78f1

Please sign in to comment.