Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC:

REGEX bugs 03 Jul 2013 05:37 #7814

positive integer regex rule should be:

^\d+$


instead of:

^d+$

I didn't check all, but it seems to me, many regex validation rules do not work due to the escaping of some char.

About the name of the rules, as the admin said, rules with underscore on their name are not accepted (I discovered this by myself, they simply didn't work), but then why, by default on a fresh generated component, the default rules are named with the underscore?

Please Log in or Create an account to join the conversation.

Last edit: by Tomaselli.

REGEX bugs 03 Jul 2013 20:10 #7822

I receive this error in a javscript alert on validation of element with the 'positive_integer' regex applied to it
jqv:custom rule not found - positive integer

Please Log in or Create an account to join the conversation.

REGEX bugs 03 Jul 2013 20:45 #7824

to fix that, you have to change the name of the rule on any file that rule is called:

FROM: positive_integer TO: positiveinteger

AND

FROM: Positive_integer TO: Positiveinteger


remember also to change the filename of the rule.

then you also have to change the regex pattern
from:
^d+$
to:
^\d+$
The following user(s) said Thank You: admin

Please Log in or Create an account to join the conversation.

REGEX bugs 03 Jul 2013 22:01 #7829

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
Fixed.

Do not listen Tomaselli... lol..

#Tomaselli : Thanks
Coding is now a piece of cake
The following user(s) said Thank You: Tomaselli, jhallock

Please Log in or Create an account to join the conversation.

REGEX bugs 04 Jul 2013 06:21 #7854

:)

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Time to create page: 0.066 seconds

First of all... I have to congratulate you guys for the awesome tool... I came here only to see what this thing was up to and I have to tell that I'm very impressed with what this tool can do. French guys are making a revolution on Joomla... first with Seblod and now Cook...
Griiettner (forum)

Get Started