2
0
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:
Alexander Shabunevich
2021-05-28 15:43:54 +03:00
parent d03871d5db
commit d07191a458
10 changed files with 26 additions and 17 deletions
+4
View File
@@ -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')
})