Skip to content
This repository has been archived by the owner on Sep 4, 2024. It is now read-only.

BUG: ? Optional (next character) - does not work #65

Closed
hagcin opened this issue Oct 23, 2017 · 5 comments
Closed

BUG: ? Optional (next character) - does not work #65

hagcin opened this issue Oct 23, 2017 · 5 comments

Comments

@hagcin
Copy link

hagcin commented Oct 23, 2017

When using the the optional '?' character, a question mark shows up in the output.

USE CASE:
'##/##/##?##'
To allow for: 05/05/95 and 05/05/1995

Input:
05/05/1995

Expected Result:
05/05/1995

Actual Result:
05/05/19?95

@birdy247
Copy link

I am trying to get something similar for a currency.

'#?#?#.##'

except the ? does not allow 5.20 or 15.20 only 152.0 Is this possible?

@NaldoColella
Copy link

Here happens same thing, using '(##) ########?#' when typing the last char it adds for a moment the '?' in the input. Strange...
BUT the value is okay, doesnt 'bug' the final result

@probil
Copy link
Owner

probil commented Feb 26, 2018

@NaldoColella I'm currently working on better tests for the codebase. It should help to fix such cases

@clemsontiger
Copy link

clemsontiger commented Jul 2, 2019

I'm having same problem as @birdy247, v-mask="'#?#.##'" isn't allowing for 4.99 and 49.99 but instead gives 49.9 when 4.99 is the value.

@probil probil mentioned this issue Jul 19, 2019
@probil
Copy link
Owner

probil commented Jul 20, 2019

Fixed in v2.0.0 and up

@probil probil closed this as completed Jul 20, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants