-
Notifications
You must be signed in to change notification settings - Fork 12.4k
-
Notifications
You must be signed in to change notification settings - Fork 12.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JSDoc Parser breaks with a complex @pattern
tag
#18273
Comments
@pattern
tag
I guess the parser should wait for a line break before interpreting another |
If you guys fix this. You might try the even more complex patten from here:
|
We should special case parsing of pattern tags to parse text till end of line instead of till next tag. PRs welcomed |
By the way, where is the |
Yes it is! I use jsDoc tags for creating swagger files. Swagger has "pattern" as validator. If you want to validate an email adress - you have to use pattern and a "complex" pattern :) |
ping? |
TypeScript Version: 2.5.2
Code
Expected behavior:
expected '^[a-zA-Z0-9_.+-]+' to equal '^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9-.]+$'
Actual behavior:
This is parsed -^[a-zA-Z0-9_.+-]+
This is expected +^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+.[a-zA-Z0-9-.]+$
Maybe I am doing something stupid or the parser is broken.
The text was updated successfully, but these errors were encountered: