2016-09-20 20:45:04 +02:00
|
|
|
import {Converter} from "./converter";
|
|
|
|
|
|
|
|
export class URIDecoder implements Converter {
|
2017-04-15 18:51:22 +02:00
|
|
|
getDisplayname(): string {
|
|
|
|
return "Decode URI";
|
|
|
|
}
|
2016-09-20 20:45:04 +02:00
|
|
|
|
2017-04-15 18:51:22 +02:00
|
|
|
getId(): string {
|
|
|
|
return "uridecode";
|
|
|
|
}
|
2016-09-20 20:45:04 +02:00
|
|
|
|
2017-04-15 18:51:22 +02:00
|
|
|
convert(input: string): string {
|
|
|
|
return decodeURI(input);
|
|
|
|
}
|
2016-09-20 20:45:04 +02:00
|
|
|
}
|