Skip to content

Commit

Permalink
Adds toRawValue() method to service
Browse files Browse the repository at this point in the history
  • Loading branch information
fabioh8010 authored May 29, 2018
1 parent 766c719 commit 8fee1ed
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/mask-service.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 8fee1ed

Please sign in to comment.