lib/hoptoad_notifier/backtrace.rb in hoptoad_notifier-2.4.9 vs lib/hoptoad_notifier/backtrace.rb in hoptoad_notifier-2.4.10

- old
+ new

@@ -3,10 +3,11 @@ class Backtrace # Handles backtrace parsing line by line class Line - INPUT_FORMAT = %r{^([^:]+):(\d+)(?::in `([^']+)')?$}.freeze + # regexp (optionnally allowing leading X: for windows support) + INPUT_FORMAT = %r{^((?:[a-zA-Z]:)?[^:]+):(\d+)(?::in `([^']+)')?$}.freeze # The file portion of the line (such as app/models/user.rb) attr_reader :file # The line number portion of the line