View Issue Details

This bug affects 1 person(s).
 4
IDProjectCategoryView StatusLast Update
09588Bug reportsExpression Managerpublic2015-03-30 08:26
Reporterroutard Assigned ToDenisChenu  
PrioritylowSeverityminor 
Status closedResolutionno change required 
Product Version2.05+ 
Summary09588: Validation regex is bugged
Description

I have a short text question with this validation equation :

#^[0-4][0-9]{2}$#

This should mean that only the entries between 000 and 499 are allowed.

BUT the problem is when the entry begins with 0 (zero), the validation / regex is not correct. All the range from 000 to 099 is not valid because it seems that the initial zero is ignored.
If I enter 0258, or any entry with 4 digits beginning with a zero, it is validated, although it shouldn't ! (always as if the initial zero is ignored).
Could you fix this ? Thx :-)

TagsNo tags attached.
Attached Files
Bug heat4
Complete LimeSurvey version number (& build)150310
I will donate to the project if issue is resolvedNo
Browser
Database type & versionmysql 5.0.51a
Server OS (if known)Linux Fcm-froxlor03 3.2.0-4-amd64 #1 SMP Debian 3.2.57-3+deb7u1 x86_64
Webserver software & version (if known)5.5.34-32.0-log
PHP Version5.4.36-0+deb7u3

Users monitoring this issue

There are no users monitoring this issue.

Activities

DenisChenu

DenisChenu

2015-03-28 17:03

developer   ~31923

Last edited: 2015-03-28 17:04

Can not reproduce http://limesurvey.sondages.pro/623857?newtest=Y

routard

routard

2015-03-28 18:00

reporter   ~31924

Last edited: 2015-03-28 18:03

I send you the .lsg file of the questions group! Still doesn't works :-)

DenisChenu

DenisChenu

2015-03-30 08:25

developer   ~31925

Why use number only : 000 is not an number : it's a string.

Issue History

Date Modified Username Field Change
2015-03-25 15:55 routard New Issue
2015-03-28 17:03 DenisChenu Note Added: 31923
2015-03-28 17:04 DenisChenu Note Edited: 31923
2015-03-28 17:05 DenisChenu File Added: Capture du 2015-03-28 17:05:07.png
2015-03-28 17:06 DenisChenu Priority high => low
2015-03-28 17:06 DenisChenu Severity partial_block => minor
2015-03-28 17:06 DenisChenu Reproducibility have not tried => unable to reproduce
2015-03-28 17:53 routard Issue Monitored: routard
2015-03-28 18:00 routard Note Added: 31924
2015-03-28 18:00 routard File Added: limesurvey_group_194.lsg
2015-03-28 18:01 routard Note Edited: 31924
2015-03-28 18:03 routard Note Edited: 31924
2015-03-28 18:12 routard Issue End Monitor: routard
2015-03-30 08:25 DenisChenu Note Added: 31925
2015-03-30 08:26 DenisChenu Status new => closed
2015-03-30 08:26 DenisChenu Assigned To => DenisChenu
2015-03-30 08:26 DenisChenu Resolution open => no change required