Regex /i Option Support

6 zobrazení
Přeskočit na první nepřečtenou zprávu

Greg Fox

nepřečteno,
20. 4. 2018 16:18:4920.04.18
komu: Swagger
I am trying to use a regex that contains the "/i" option to make the entire regex case insensitive. For some reason this doesn't seem to work. I do see it in the ECMA 262 (2011) specification so it should work. Am I using this option incorrectly for the Swagger regex implementation?

'^[A-Z0-9][A-Z0-9-]+[A-Z0-9]$/i'

Ron Ratovsky

nepřečteno,
1. 5. 2018 15:19:0801.05.18
komu: swagger-sw...@googlegroups.com

It doesn’t seem to work where? Swagger is a set of tools, not a specific one. Which tool are you referring to?

--
You received this message because you are subscribed to the Google Groups "Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
swagger-swaggers...@googlegroups.com.
For more options, visit
https://groups.google.com/d/optout.

Greg Fox

nepřečteno,
1. 5. 2018 15:28:5101.05.18
komu: Swagger
This is happening in the Swagger Editor running in the browser when I do a Try it Out.  With the /i option on the end of the regex, Uppercase, Lowercase & Mixed case entries in the field all fail. If I remove the /I, then the Uppercase will work but not Lowercase or Mixed  case.

Ron Ratovsky

nepřečteno,
1. 5. 2018 15:53:1001.05.18
komu: swagger-sw...@googlegroups.com

I see. That might be an issue with the validation implementation. Would you mind filing a ticket on Swagger-UI (not Swgger-Editor)?

--

You received this message because you are subscribed to the Google Groups "Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email to

Odpovědět všem
Odpověď autorovi
Přeposlat
0 nových zpráv