FC4E-T4-3 / type-api

MIT License
3 stars 1 forks source link

Regex Escape Backslash #59

Open Lienhop opened 8 months ago

Pfeil commented 2 weeks ago

Hi Hans,

I think this observation is related to this issue: Creating a schema for one of our KIPs in dtr-test, it seems there are too many escapes. For example, this regex:

^([0-9,A-Z,a-z])+(\\\\.([0-9,A-Z,a-z])+)*\\\\/([!-~])+$

Should (probably?) be

^([0-9,A-Z,a-z])+(\\.([0-9,A-Z,a-z])+)*\\/([!-~])+$

according to its definition with the schema available. This is what has worked for us so far. I used the docker-compose file, not the main branch version.

Is this what this issue is about?

PS: I finally found some time to take a closer look, so there may be more questions incoming :)