From 8fee1edb25b7875f6ca51eb70dc2b6687e55cccd Mon Sep 17 00:00:00 2001 From: fabioh8010 Date: Tue, 29 May 2018 15:27:19 -0300 Subject: [PATCH] Adds toRawValue() method to service --- lib/mask-service.js | 4 ++++ 1 file changed, 4 insertions(+) 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); }