This commit is contained in:
sinclair
2023-01-07 22:03:42 +09:00
parent c843318058
commit d884964169
2 changed files with 6 additions and 1 deletions
+1 -1
View File
@@ -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",
+5
View File
@@ -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/')
})
})