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

Brian Leathem (JIRA) jira-events at lists.jboss.org
Tue Oct 30 17:18:01 EDT 2012


Brian Leathem created RF-12583:
----------------------------------

             Summary: 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)
    Affects Versions: 4.1.0.Milestone4
            Reporter: 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