encode download links (closes #104)

This commit is contained in:
Alex Shnitman
2022-01-14 09:11:03 +02:00
parent 62570a0a40
commit 622ca428e3
3 changed files with 12 additions and 2 deletions

View File

@@ -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);
}
}