Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Make sure to strip out escape reset as well.

  • Loading branch information...
commit 8767bc7a11c08761b973835151baf2f46ec51f01 1 parent 6c5b9ef
@Flameeyes Flameeyes authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  readscript.rb
View
2  readscript.rb
@@ -83,7 +83,7 @@
match = false
# remove escape sequences
- line.gsub!(/\x1b\[[^\x40-\x7e]+[\x40-\x7e]/, '')
+ line.gsub!(/\x1b\[[^\x40-\x7e]*[\x40-\x7e]/, '')
if line =~ warnings
match = true
Please sign in to comment.
Something went wrong with that request. Please try again.