16 lines
302 B
TypeScript
16 lines
302 B
TypeScript
import {Converter} from './converter';
|
|
|
|
export class URIComponentDecoder implements Converter {
|
|
getDisplayname(): string {
|
|
return 'Decode URI component';
|
|
}
|
|
|
|
getId(): string {
|
|
return 'uricomponentdecode';
|
|
}
|
|
|
|
convert(input: string): string {
|
|
return decodeURIComponent(input);
|
|
}
|
|
}
|