mirror of
https://github.com/tenrok/maska.git
synced 2026-06-14 18:42:27 +03:00
#27 Fix escaped token at the end
This commit is contained in:
@@ -21,6 +21,10 @@ test('1. #.#', () => {
|
||||
expect(mask('1.', '#.#', tokens)).toBe('1.')
|
||||
})
|
||||
|
||||
test('1-23A #-##!A', () => {
|
||||
expect(mask('123', '#-##!A', tokens)).toBe('1-23A')
|
||||
})
|
||||
|
||||
test('123 #.#', () => {
|
||||
expect(mask('123', '#.#', tokens)).toBe('1.2')
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user