YousefED / typescript-json-schema

Generate json-schema from your Typescript sources
BSD 3-Clause "New" or "Revised" License
3.14k stars 322 forks source link

RegExp special characters are not escaped for string template literals #602

Closed ahochsteger closed 4 months ago

ahochsteger commented 4 months ago

A string template literal like ${string}.${string} currently produces a string pattern of "^.*..*$" in the resulting JSON schema while the correct pattern would be "^.*\\..*$".