aboutsummaryrefslogtreecommitdiff
path: root/ui/src/app/downloads.pipe.ts
diff options
context:
space:
mode:
Diffstat (limited to 'ui/src/app/downloads.pipe.ts')
-rw-r--r--ui/src/app/downloads.pipe.ts9
1 files changed, 9 insertions, 0 deletions
diff --git a/ui/src/app/downloads.pipe.ts b/ui/src/app/downloads.pipe.ts
index d4a1654..cb3bf92 100644
--- a/ui/src/app/downloads.pipe.ts
+++ b/ui/src/app/downloads.pipe.ts
@@ -35,3 +35,12 @@ export class SpeedPipe implements PipeTransform {
return parseFloat((value / Math.pow(k, i)).toFixed(dm)) + ' ' + sizes[i];
}
}
+
+@Pipe({
+ name: 'encodeURIComponent'
+})
+export class EncodeURIComponent implements PipeTransform {
+ transform(value: string, ...args: any[]): any {
+ return encodeURIComponent(value);
+ }
+}
bgstack15