[richfaces-issues] [JBoss JIRA] (RF-12583) Typo in the makePatternAMatch CSV javascript function

Brian Leathem (JIRA) jira-events at lists.jboss.org
Mon Jan 14 13:52:24 EST 2013


     [ https://issues.jboss.org/browse/RF-12583?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brian Leathem closed RF-12583.
------------------------------


    
> Typo in the makePatternAMatch CSV javascript function
> -----------------------------------------------------
>
>                 Key: RF-12583
>                 URL: https://issues.jboss.org/browse/RF-12583
>             Project: RichFaces
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: component-validators
>    Affects Versions: 4.1.0.Milestone4
>            Reporter: Brian Leathem
>            Assignee: Brian Leathem
>             Fix For: 4.2.4, 4.3.0.M3
>
>
> The _makePatternAMatch_ function was introduced in resolution to RF-11531.  however that method has a typo in it.  See the extra ";" in the second _pattern_ assignment.
> {code}
> var makePatternAMatch = function(pattern) {
>         if (! (pattern.slice(0, 1) === '^') ) {
>             pattern = '^' + pattern;
>         }
>         if (! (pattern.slice(-1) === '$') ) {
>             pattern = pattern; + '$';
>         }
>         return pattern;
>     }
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the richfaces-issues mailing list