logo       

Re: [jruby-user] What does nested repeat operator + and ? was replaced with: msg#00212

lang.jruby.user

Subject: Re: [jruby-user] What does nested repeat operator + and ? was replaced with '*' mean?

James Moore wrote:
Tried to run the tests for my rails app using trunk jruby (r5081), and
I'm getting these error messages:

run test/unit/asterisk_call_file_test.rb
/home/james/jruby/lib/ruby/gems/1.8/gems/actionpack-1.99.0.8178/lib/action_view/helpers/text_helper.rb:425
warning:
( # leading text
<\w+.*?>| # leading HTML tag, or
[^=!:'"/]| # leading punctuation, or
^ # beginning of line
)
(
(?:https?://)| # protocol spec, or
(?:www\.) # www.*
)
(
[-\w]+ # subdomain or domain
(?:\.[-\w]+)* # remaining
subdomains or domain
(?::\d+)? # port
(?:/(?:(?:[~\w\+@%-]|(?:[,.;:][^\s$]))+)?)* # path
(?:\?[\w\+@%&=.;-]+)? # query string
(?:\#[\w\-]*)? # trailing anchor
)
([[:punct:]]|\s|<|$) # trailing text
nested repeat operator + and ? was replaced with '*'


I'm not sure what that error message means (and I'm definitely sure I
don't want to understand that regex...).
First of all, it's not an error message - it's a warning.
This warning tells you that the regexp Rails uses is wasteful, and has been replaced with something equivalent, but more optimal. The warning should really be turned off to match MRI, but we haven't gotten to that yet.

Cheers

--
Ola Bini (http://ola-bini.blogspot.com) JRuby Core Developer
Developer, ThoughtWorks Studios (http://studios.thoughtworks.com)
Practical JRuby on Rails (http://apress.com/book/view/9781590598818)

"Yields falsehood when quined" yields falsehood when quined.



---------------------------------------------------------------------
To unsubscribe from this list please visit:

http://xircles.codehaus.org/manage_email




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise