View Issue Details

This issue affects 1 person(s).
 2
IDProjectCategoryView StatusLast Update
09616Bug reportsExpression Managerpublic2015-04-25 12:14
Reporterceliaudi Assigned ToDenisChenu  
PriorityurgentSeveritypartial_block 
Status closedResolutionno change required 
Product Version2.05+ 
Summary09616: Re-open bug 06330
Description

Regex engine does not accept leading zeros even if explicitly specified

Steps To Reproduce

1.) Define a free text entry question
2.) Limit max length to 4 characters
3.) Apply /^[0-9]{11}$/ as validation expression
4.) Test the question in a submittable survey, and enter any number with a leading zero as answer

The answer would not validate.

Additional Information

I have also noticed, that not limiting the answer length to the number of characters implied by the regex, after surpassing this implied limit, the regex would match (resulting in an illegal answer). E.g. typing anything as a 12th digit would satisfy the regex.

TagsNo tags attached.
Attached Files
Bug heat2
Complete LimeSurvey version number (& build)141020
I will donate to the project if issue is resolvedNo
BrowserMozilla Firefox 37.0
Database type & versionPostgreSQL 9.1
Server OS (if known)Debian Wheezy (3.2.46-1)
Webserver software & version (if known)Apache 2.2.22
PHP VersionPHP 5.4.4-14
Git branch / Pull Request URL

Users monitoring this issue

There are no users monitoring this issue.

Activities

DenisChenu

DenisChenu

2015-04-25 11:35

developer   ~32057

Please : can you send a lss file with only one question

DenisChenu

DenisChenu

2015-04-25 12:11

developer   ~32058

There are no bug here : you limit character to 4, then we can not have 11 character.

DenisChenu

DenisChenu

2015-04-25 12:14

developer   ~32059

Not a bug : {11} and limit to 4 are incompatible.

Issue History

Date Modified Username Field Change
2015-04-23 20:27 celiaudi New Issue
2015-04-23 20:27 celiaudi File Added: limesurvey_question_4919.lsq
2015-04-25 11:35 DenisChenu Note Added: 32057
2015-04-25 12:11 DenisChenu Note Added: 32058
2015-04-25 12:13 DenisChenu File Added: limesurvey_survey_NONBUG.lss
2015-04-25 12:14 DenisChenu Note Added: 32059
2015-04-25 12:14 DenisChenu Status new => closed
2015-04-25 12:14 DenisChenu Assigned To => DenisChenu
2015-04-25 12:14 DenisChenu Resolution open => no change required