mirror of
https://github.com/zoriya/typebox.git
synced 2026-05-27 08:33:16 +00:00
Version
This commit is contained in:
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@sinclair/typebox",
|
||||
"version": "0.25.16",
|
||||
"version": "0.25.17",
|
||||
"description": "JSONSchema Type Builder with Static Type Resolution for TypeScript",
|
||||
"keywords": [
|
||||
"typescript",
|
||||
|
||||
@@ -62,4 +62,9 @@ describe('type/compiler/String', () => {
|
||||
const T = Type.String({ pattern: '[\\d]{5}' })
|
||||
Ok(T, '12345')
|
||||
})
|
||||
|
||||
it('Should should escape characters in the pattern', () => {
|
||||
const T = Type.String({ pattern: '/a/' })
|
||||
Ok(T, '/a/')
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user