JRuby parses invalid regex without raising SyntaxError ------------------------------------------------------
Key: JRUBY-5270 URL: http://jira.codehaus.org/browse/JRUBY-5270 Project: JRuby Issue Type: Bug Components: Parser Affects Versions: JRuby 1.5.6 Environment: OS X Reporter: Tony Arcieri Assignee: Thomas E Enebo This is a simple enough one to reproduce. Create a Ruby file which contains the following invalid regex: /*/ It's applying a kleene star to nothing, which is clearly wrong! The MRI behavior is this: SyntaxError: compile error (irb):1: invalid regular expression; there's no previous pattern, to which '*' would define cardinality at 1: /*/ JRuby doesn't raise a SyntaxError. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email