Skip to content

Commit 4de347c

Browse files
authored
Merge pull request #24 from insin/v2.2.0
v2.2.0
2 parents 8c3a059 + ad638ee commit 4de347c

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

CHANGES.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## 2.2.0 / 2016-09-15
2+
3+
Fixed placeholderChar to allow `''`
4+
Fixed `setSelection` to set the selection to the end of the prior value chunk (user-input value)
5+
Added `isRevealingMask` property
6+
17
## 2.1.1 / 2015-09-11
28

39
Fixed setting`null` or `undefined` as the mask's value - this will now be treated as if `''` had been set rather than causing an error ([#5](https://github.com/insin/inputmask-core/issues/5))

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -186,9 +186,9 @@ An optional default selection - defaults to `{start: 0, end: 0}`, placing the cu
186186
An optional property that, if true, progressively shows the mask as input is entered. Defaults to `false`
187187

188188
Example:
189-
Given an input with a mask of '111-1111 x 111', a value of '47', and `isRevealingMask` set to `true`, then the input's value is formatted as '47'
190-
Given the same input but with a value of '476', then the input's value is formatted as '476-'
191-
Given the same input but with a value of '47 3191', then the input's value is formatted as '47_-3191 x '
189+
Given an input with a mask of `111-1111 x 111`, a value of `47`, and `isRevealingMask` set to `true`, then the input's value is formatted as `47`
190+
Given the same input but with a value of `476`, then the input's value is formatted as `476-`
191+
Given the same input but with a value of `47 3191`, then the input's value is formatted as `47_-3191 x `
192192

193193
## `InputMask` editing methods
194194

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "inputmask-core",
3-
"version": "2.1.1",
3+
"version": "2.2.0",
44
"description": "Standalone input mask implementation, independent of any GUI",
55
"main": "lib/index.js",
66
"scripts": {

0 commit comments

Comments
 (0)