Skip to content

Commit

Permalink
Docs for preprocessor option
Browse files Browse the repository at this point in the history
  • Loading branch information
beholdr committed Nov 13, 2021
1 parent acee49c commit 15f3637
Show file tree
Hide file tree
Showing 8 changed files with 21 additions and 10 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,17 @@ var mask = Maska.create('.masked', {
});
```

You also can pass custom preprocessing transformation function for entire input:

``` javascript
var mask = Maska.create('.masked', {
tokens: { 'Z': { pattern: /[а-яА-Я]/ }},
preprocessor: value => {
return value.toUpperCase();
}
});
```

You can destroy mask like that:

``` javascript
Expand Down
4 changes: 2 additions & 2 deletions dist/es6/maska.esm.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions dist/es6/maska.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 15f3637

Please sign in to comment.