Open aviram26 opened 8 years ago
Apparently, the warning should be replaced with an actual implementation.
As you can see, a regular expression [A-Z0-9._%+-]+@[A-Z0-9.-]+.[A-Z]{2,6}, which is supposed to be an email, results in the following string:
%3-肯=41/--1䗤2-橦-:/G=륇-椇/@;..벰//&#20;1-&#15;-.ቇ@─-//텝&#0;Q1ⱓ3:&#30;/&#24;ꎷ@.2L/T.-/0./=//&#11;--A7340.V?&#29;'.;>> ?.N桫./掩M--K鿔3@H&#19;--&#24;7-瀶.2/&#22;얲!.Z>R2&#0;.DRO7--/.&#27;&#17;&#29;S:/U77_-偎E.8>3茰廔&#16;炑N:.6.!<@;줈.=94PJ&#23;&#18;見3&#23;I/࣊/&#31;?7.@'?/,.--燒@씜/$#ﱻT-꼼/_-..0캫俟㦛.뵮/☻-ചU꼶⑀W//뉄-.E-O/Y'ᦧ//2.-5.$I.-57桱-1-Ძ>--$0T&#5;//;T./(/I)E6.&#0;&#23;/3.-&#17;嵱J氨9//R/X-.-*&#23;22$&#11;鹽//ȷn&@졸6JT.>W@6/:O&#17;&#3;@-A&#19;E@PH5U/:/M/&#22;-/-1O:⾆/X0&#29;Q.&#21;//:V4T-6&#15;--23膴9-/'&#29;4/&#6;<E2- 6-&#11;:=!6ﲾ=$-6&#12;-6/ﱕ<&#28;;+Y?T5:襥CTZ1-/펦)掰///=20EF&#6;:=8ꐤ2-5P.4.2-≴ꛭ>V!00/G/.;Q/켢8&#24;I䀄풡909&#21;-1/?ᦶ7-/놟S?&#26;&#22;K..68/:-.-/䞋&#25;-῾U?.;9/&#0;Q&#30;.&#18;:&#22;/&#29;<&#20;>6.X0B㟿/3-ꪛ-&#8;兵&#20;-./3-.YF
And also Generex doesn't support ^ and $ patterns.
You are right... I will look for other solutions and update if I find anything Thanks for the responsiveness :)
Currently got a warning:
At the moment PODAM doesn't support @Pattern({})
I can do a PR if you can give me some hints about the way to achieve this (e.g. a way to override
BeanValidationStrategy
or attaching something to the factory)Can be generated easily using https://github.com/mifmif/Generex