2
0
mirror of https://github.com/tenrok/maska.git synced 2026-05-30 15:24:06 +03:00
Commit Graph

7 Commits

Author SHA1 Message Date
Alexander Shabunevich 9b454e996a refactor: move to single package 2024-06-02 16:49:41 +03:00
Alexander Shabunevich 4de44ef888 feat!: separate packages 2024-04-17 19:31:22 +03:00
Alexander Shabunevich f26128d19b test: additional tests for cursor position 2024-04-09 22:29:42 +03:00
Alexander Shabunevich ce1243abcd fix!: change eager mask behavior
Now eager mask take into account a hardcoded symbols
2024-04-06 10:13:31 +03:00
Andre Asselin 222f2df70a Fix #183 Multiple modifier breaks other custom tokens
When a token with multiple:true does not match the next character, we need to determine if it matched any previous characters or not.
If it hasn't matched any characters yet, then we skip the invalid input character and remain on the same token.
If it has matched 1 or more input characters, then we advance to the next token, but stay on the same input character.

The old code had several issues with this.  I replaced it with a simple flag (multipleMatched) that is set to true whenever a token with multiple==true matches an input character, and can then be tested when a token with multiple==true doesn't match an input character.
2024-01-09 18:27:18 -05:00
Alexander Shabunevich 547f1711e8 Refactor Mask options
Allow to pass null mask for disable masking
2022-12-09 11:54:20 +03:00
Alexander Shabunevich 31c286bb6b New version code prepare 2022-12-04 17:05:23 +03:00