Skip to content

Commit

Permalink
Fix 1.8.7 warning: "regexp has invalid interval"
Browse files Browse the repository at this point in the history
  • Loading branch information
elia committed Jan 14, 2014
1 parent 1e1a878 commit 2bf06ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/haml/parser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ class Parser
DOCTYPE_REGEX = /(\d(?:\.\d)?)?[\s]*([a-z]*)\s*([^ ]+)?/i

# The Regex that matches a literal string or symbol value
LITERAL_VALUE_REGEX = /:(\w*)|(["'])((?!\\|\#{|\#@|\#\$|\2).|\\.)*\2/
LITERAL_VALUE_REGEX = /:(\w*)|(["'])((?!\\|\#\{|\#@|\#\$|\2).|\\.)*\2/

def initialize(template, options)
# :eod is a special end-of-document marker
Expand Down

1 comment on commit 2bf06ae

@scottbaron
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I regret wasting your valuable time; first thank you for your input and guidance. However, before I make this edit I would just like to get your suggestion on howto. I know I can find this file and view it in XCODE is that the proper way to edit same. Thank you very much.

Please sign in to comment.