converter/src/app/converter/uricomponentdecoder.ts

16 lines
302 B
TypeScript
Raw Normal View History

2016-09-20 20:45:04 +02:00
import {Converter} from "./converter";
export class URIComponentDecoder implements Converter {
getDisplayname(): string {
return "Decode URI component";
}
2016-09-20 20:45:04 +02:00
getId(): string {
return "uricomponentdecode";
}
2016-09-20 20:45:04 +02:00
convert(input: string): string {
return decodeURIComponent(input);
}
2016-09-20 20:45:04 +02:00
}