diff --git a/lib/mask-service.js b/lib/mask-service.js index 19376077..41e3a606 100644 --- a/lib/mask-service.js +++ b/lib/mask-service.js @@ -5,6 +5,10 @@ export default class MaskService { return MaskResolver.resolve(type).getValue(value, settings); } + static toRawValue(type, maskedValue, settings) { + return MaskResolver.resolve(type).getRawValue(maskedValue, settings); + } + static isValid(type, value, settings) { return MaskResolver.resolve(type).validate(value, settings); }