aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared/angular/highlight.pipe.ts
diff options
context:
space:
mode:
authorRigel Kent <sendmemail@rigelk.eu>2020-02-12 16:20:49 +0100
committerRigel Kent <sendmemail@rigelk.eu>2020-02-13 16:48:46 +0100
commit8a979d73c3343ecf07b4e6411fa2a6783cd0a3b0 (patch)
treef3325f8a55cab793ccacc361d47fbf28c5acc4c6 /client/src/app/shared/angular/highlight.pipe.ts
parent9b8a7aa8ea128f7e197ff38ca9f86ffa53bbe110 (diff)
downloadPeerTube-8a979d73c3343ecf07b4e6411fa2a6783cd0a3b0.tar.gz
PeerTube-8a979d73c3343ecf07b4e6411fa2a6783cd0a3b0.tar.zst
PeerTube-8a979d73c3343ecf07b4e6411fa2a6783cd0a3b0.zip
Simplify code for search-typeahead
Diffstat (limited to 'client/src/app/shared/angular/highlight.pipe.ts')
-rw-r--r--client/src/app/shared/angular/highlight.pipe.ts2
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': {