Skip to content
This repository has been archived by the owner on Nov 11, 2017. It is now read-only.

Commit

Permalink
Either there's a drive letter and colon or neither.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jon Yurek committed Mar 30, 2011
1 parent 3343185 commit 35313de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/hoptoad_notifier/backtrace.rb
Expand Up @@ -6,7 +6,7 @@ class Backtrace
class Line

# regexp (optionnally allowing leading X: for windows support)
INPUT_FORMAT = %r{^([a-zA-Z]?:?[^:]+):(\d+)(?::in `([^']+)')?$}.freeze
INPUT_FORMAT = %r{^((?:[a-zA-Z]:)?[^:]+):(\d+)(?::in `([^']+)')?$}.freeze

# The file portion of the line (such as app/models/user.rb)
attr_reader :file
Expand Down

0 comments on commit 35313de

Please sign in to comment.