incubator-callback-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Patrick Mueller (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-1494) Supports running server behind a proxy, such as Heroku Cedar
Date Fri, 21 Sep 2012 14:09:07 GMT

    [ https://issues.apache.org/jira/browse/CB-1494?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13460506#comment-13460506
] 

Patrick Mueller commented on CB-1494:
-------------------------------------

The regex won't match headers with extra "," or spaces at the end.  Prolly not a huge problem,
but who knows.  Simple fix to make it more robust below (add an extra (\s|,) before $).

{noformat}
node
> "a b c".match(/([^\s|,]+)$/)
[ 'c',
  'c',
  index: 4,
  input: 'a b c' ]
> "a b c ".match(/([^\s|,]+)$/)
null
> "a b c".match(/([^\s|,]+)(\s|,)*$/)
[ 'c',
  'c',
  undefined,
  index: 4,
  input: 'a b c' ]
> "a b c ".match(/([^\s|,]+)(\s|,)*$/)
[ 'c ',
  'c',
  ' ',
  index: 4,
  input: 'a b c ' ]
> "  a , b, c , ".match(/([^\s|,]+)(\s|,)*$/)
[ 'c , ',
  'c',
  ' ',
  index: 9,
  input: '  a , b, c , ' ]

{noformat}
                
> Supports running server behind a proxy, such as Heroku Cedar
> ------------------------------------------------------------
>
>                 Key: CB-1494
>                 URL: https://issues.apache.org/jira/browse/CB-1494
>             Project: Apache Cordova
>          Issue Type: New Feature
>          Components: weinre
>            Reporter: Patrick Mueller
>            Assignee: Patrick Mueller
>
> created for https://github.com/apache/incubator-cordova-weinre/pull/10

--
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

Mime
View raw message