Issue 9 in jquery-validation-ui-plugin: Validation matches [a-zA-Z]+ doesn't support single character

12 views
Skip to first unread message

jquery-valida...@googlecode.com

unread,
Mar 11, 2011, 4:06:56 AM3/11/11
to jquery-valida...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 9 by sakthisa...@gmail.com: Validation matches [a-zA-Z]+ doesn't
support single character
http://code.google.com/p/jquery-validation-ui-plugin/issues/detail?id=9

What steps will reproduce the problem?
1. I validate in the domain class fields like this pattern matches:[a-zA-Z]+
2.In the client side the code was inject correctly. But the validation not
happening, if i give single character
3.If I turn of the javascript, the server accepts the input correctly

What is the expected output? What do you see instead?

Accept single character for the following pattern: [a-zA-Z]+ eg: A

What version of the product are you using? On what operating system?

Grails 1.3.5
jquery validation ui 1.1.1
OS : Linux
Linux sakthi 2.6.32-5-686 #1 SMP Tue Oct 19 14:40:34 UTC 2010 i686 GNU/Linux

Please provide any additional information below.

Message has been deleted

jquery-valida...@googlecode.com

unread,
Mar 11, 2011, 5:21:00 AM3/11/11
to jquery-valida...@googlegroups.com
Updates:
Status: Accepted

Comment #1 on issue 9 by limchee...@vobject.com: Validation matches

Hi there,

Thanks for creating the issue. I spot the error, 1 character not accepted,
but 2 is OK.

Did you familiar with JavaScript RegEx? The code which perform validation is
this one: value.match(new RegExp(".[a-zA-Z]+$")), anything wrong with this
code?

Wish to hear from you soon!

Best regards,
Chee Kin

jquery-valida...@googlecode.com

unread,
Mar 11, 2011, 6:52:37 AM3/11/11
to jquery-valida...@googlegroups.com

Comment #2 on issue 9 by sakthisa...@gmail.com: Validation matches
Hi,

Better remove the $ symbol. Because the same pattern working fine in server
side.


With Regards ,
*சக்தி சரவணகுமார் . பி,*
சென்னை - 600043.
*India *


On Fri, Mar 11, 2011 at 3:51 PM, <jquery-valida...@googlecode.com

jquery-valida...@googlecode.com

unread,
Mar 11, 2011, 7:58:41 AM3/11/11
to jquery-valida...@googlegroups.com

Comment #3 on issue 9 by limchee...@vobject.com: Validation matches

Noted. For time-being, you can do a quick fix yourself, the code is at line
27 of grails-validation-methods.js.

Regards,
Chee Kin

jquery-valida...@googlecode.com

unread,
Mar 11, 2011, 8:24:06 AM3/11/11
to jquery-valida...@googlegroups.com

Comment #4 on issue 9 by sakthisa...@gmail.com: Validation matches
Hi,

I fixed the issue by removing the *.(dot)* for creating regular expression.
You may chnaged that line and tested once again, if its ok then upload to
new release.

Code:

*return this.optional(element) || value.match(new RegExp(param + "$"));*


With Regards ,
*சக்தி சரவணகுமார் . பி,*
சென்னை - 600043.
*India *


On Fri, Mar 11, 2011 at 6:28 PM, <jquery-valida...@googlecode.com

jquery-valida...@googlecode.com

unread,
Mar 11, 2011, 8:34:14 AM3/11/11
to jquery-valida...@googlegroups.com

Comment #5 on issue 9 by limchee...@vobject.com: Validation matches

Noted. Thanks for information and the fix. I am very busy now, I will test
it out later.

Best regards,
Chee Kin

jquery-valida...@googlecode.com

unread,
Mar 11, 2011, 8:38:18 AM3/11/11
to jquery-valida...@googlegroups.com

Comment #6 on issue 9 by sakthisa...@gmail.com: Validation matches

In the java.lang.Bigdecimal also thrown an error for matches and range.
Please check the code and rectify it.

Thank you for quick response

Chee Kin Lim

unread,
Mar 11, 2011, 9:02:39 AM3/11/11
to jquery-valida...@googlegroups.com
May I have the error message?

jquery-valida...@googlecode.com

unread,
Mar 11, 2011, 9:03:32 AM3/11/11
to jquery-valida...@googlegroups.com

Comment #7 on issue 9 by limchee...@vobject.com: Validation matches

May I have the error message? Thanks

jquery-valida...@googlecode.com

unread,
Mar 18, 2011, 7:28:45 AM3/18/11
to jquery-valida...@googlegroups.com
Updates:
Status: Started

Comment #8 on issue 9 by limchee...@vobject.com: Validation matches

(No comment was entered for this change.)

jquery-valida...@googlecode.com

unread,
Mar 18, 2011, 7:32:16 AM3/18/11
to jquery-valida...@googlegroups.com
Updates:
Status: Fixed

Comment #9 on issue 9 by limchee...@vobject.com: Validation matches

Reply all
Reply to author
Forward
0 new messages