Hi

Create a patch with the failing test and the solution in our jira:
jira.nhforge.org

Thanks

On Sat, Sep 12, 2009 at 5:22 PM, Kasper22 <[email protected]> wrote:

>
> Hi All,
>
> I've been getting some exceptions from the validator that refer to the
> AbstractLuhnValidator class.  So after a few experiments I figured out
> what the user was doing, which was putting spaces in the card number.
> So looking at the AbstractLuhnValidator class I found there was a
> regex that was checking for digits only, but it currently looks like
> this \d*$.  So pretty much anything can be passed in and that regex
> will pass.
>
> I've created a patch that adds the ^ in-front and gave it an expected
> character count. so that everything in the card number is expected to
> be a digit.  The patch includes an updated test to makes sure a few
> different invalid numbers are now caught by the updated expression.
>
> If there is a reason for the way things are let me know.
>
> Bryan
>
> >
>


-- 
Dario Quintana
http://darioquintana.com.ar

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"NHibernate Contrib - Development Group" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com.ar/group/nhcdevs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to