socketry / console

MIT License
52 stars 13 forks source link

Generate regex for cleaning the root path in Failure only once #19

Closed fnordfish closed 3 years ago

fnordfish commented 3 years ago

Description

When Failure cleans the given root path from a backtrace, the Rexexp used for that will only be generated once, instead of once per line. It also uses sub! instead of gsub! b/c we can safely break after the first match.

Types of Changes

Testing

ioquatix commented 3 years ago

Great, thanks for this.