Skip to content

Commit

Permalink
given credit to @neves and vue-the-mask
Browse files Browse the repository at this point in the history
  • Loading branch information
caneco committed Jul 11, 2019
1 parent d61adde commit 0efbdf2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/masker/masker-dynamic.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/**
* Original code from `vue-the-mask`
* https://github.com/vuejs-tips/vue-the-mask/blob/master/src/dynamic-mask.js
*/
export default function (maskit, masks, tokens) {
masks = masks.slice().sort((a, b) => a.length - b.length)

Expand Down
4 changes: 4 additions & 0 deletions src/masker/masker-regular.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/**
* Original code from `vue-the-mask`
* https://github.com/vuejs-tips/vue-the-mask/blob/master/src/maskit.js
*/
export default function (value = '', mask = '', masked = true, tokens = {}) {
let i = 0, j = 0
var output = '', restOutput = ''
Expand Down

0 comments on commit 0efbdf2

Please sign in to comment.