diff options
author | Rigel Kent <sendmemail@rigelk.eu> | 2020-02-12 16:20:49 +0100 |
---|---|---|
committer | Rigel Kent <sendmemail@rigelk.eu> | 2020-02-13 16:48:46 +0100 |
commit | 8a979d73c3343ecf07b4e6411fa2a6783cd0a3b0 (patch) | |
tree | f3325f8a55cab793ccacc361d47fbf28c5acc4c6 /client/src/app/shared/angular | |
parent | 9b8a7aa8ea128f7e197ff38ca9f86ffa53bbe110 (diff) | |
download | PeerTube-8a979d73c3343ecf07b4e6411fa2a6783cd0a3b0.tar.gz PeerTube-8a979d73c3343ecf07b4e6411fa2a6783cd0a3b0.tar.zst PeerTube-8a979d73c3343ecf07b4e6411fa2a6783cd0a3b0.zip |
Simplify code for search-typeahead
Diffstat (limited to 'client/src/app/shared/angular')
-rw-r--r-- | client/src/app/shared/angular/highlight.pipe.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/client/src/app/shared/angular/highlight.pipe.ts b/client/src/app/shared/angular/highlight.pipe.ts index e219b3823..fb6042280 100644 --- a/client/src/app/shared/angular/highlight.pipe.ts +++ b/client/src/app/shared/angular/highlight.pipe.ts | |||
@@ -30,7 +30,7 @@ export class HighlightPipe implements PipeTransform { | |||
30 | break | 30 | break |
31 | } | 31 | } |
32 | case 'Single-And-StartsWith-Match': { | 32 | case 'Single-And-StartsWith-Match': { |
33 | regex = new RegExp("^" + stringToHighlight, caseFlag) | 33 | regex = new RegExp('^' + stringToHighlight, caseFlag) |
34 | break | 34 | break |
35 | } | 35 | } |
36 | case 'Multi-Match': { | 36 | case 'Multi-Match': { |