File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ export function inputHandler(event) {
5151 event . stopPropagation ( )
5252
5353 // gather some information from the input before masking
54- let cursorPosition = target . selectionEnd
54+ const cursorPosition = target . selectionEnd
5555 const isCursorAtEnd = event . data && cursorPosition == target . value . length
5656 const digit = target . value [ cursorPosition - 1 ] // last inserted digit
5757
Original file line number Diff line number Diff line change @@ -4,5 +4,6 @@ export default {
44 S : { pattern : / [ a - z A - Z ] / } ,
55 A : { pattern : / [ a - z A - Z ] / , transform : ( v ) => v . toLocaleUpperCase ( ) } ,
66 a : { pattern : / [ a - z A - Z ] / , transform : ( v ) => v . toLocaleLowerCase ( ) } ,
7- '!' : { escape : true }
7+ '!' : { escape : true } , // deprecated, use \ moving forward
8+ '\\' : { escape : true }
89}
You can’t perform that action at this time.
0 commit comments