If you do a regex like this: /^[a-zA-Z0-9 ]*$/ tsoa will give you an Invalid regular expression: /^[a-zA-Z0-9/: Unterminated character class SyntaxError at runtime.
Pretty sure this is because @pattern looks for a space to separate the regex and the error message. Which means the rest of the regex after the space gets cut off and treated as part of the error message.
I understand you can /s to match whitespace as an alternative, but I'm talking about the case of matching a literal space character only where you don't want to match all whitespace characters.
If you do a regex like this:
/^[a-zA-Z0-9 ]*$/tsoa will give you anInvalid regular expression: /^[a-zA-Z0-9/: Unterminated character classSyntaxError at runtime.Pretty sure this is because
@patternlooks for a space to separate the regex and the error message. Which means the rest of the regex after the space gets cut off and treated as part of the error message.I understand you can
/sto match whitespace as an alternative, but I'm talking about the case of matching a literal space character only where you don't want to match all whitespace characters.