Rubocop fixes for lib/jekyll/utils/ansi.rb

This commit is contained in:
Brint O'Hearn 2016-05-19 21:06:35 -05:00
parent e85f2a0ee9
commit d743c80357
2 changed files with 9 additions and 10 deletions

View File

@ -62,7 +62,6 @@ AllCops:
- lib/jekyll/tags/post_url.rb - lib/jekyll/tags/post_url.rb
- lib/jekyll/theme.rb - lib/jekyll/theme.rb
- lib/jekyll/url.rb - lib/jekyll/url.rb
- lib/jekyll/utils/ansi.rb
- lib/jekyll/utils/platforms.rb - lib/jekyll/utils/platforms.rb
- lib/jekyll/utils.rb - lib/jekyll/utils.rb
- lib/jekyll.rb - lib/jekyll.rb

View File

@ -8,7 +8,7 @@ module Jekyll
extend self extend self
ESCAPE = format("%c", 27) ESCAPE = format("%c", 27)
MATCH = /#{ESCAPE}\[(?:\d+)(?:;\d+)*(j|k|m|s|u|A|B|G)|\e\(B\e\[m/ix.freeze MATCH = /#{ESCAPE}\[(?:\d+)(?:;\d+)*(j|k|m|s|u|A|B|G)|\e\(B\e\[m/ix
COLORS = { COLORS = {
:red => 31, :red => 31,
:green => 32, :green => 32,
@ -18,7 +18,7 @@ module Jekyll
:white => 37, :white => 37,
:blue => 34, :blue => 34,
:cyan => 36 :cyan => 36
} }.freeze
# Strip ANSI from the current string. It also strips cursor stuff, # Strip ANSI from the current string. It also strips cursor stuff,
# well some of it, and it also strips some other stuff that a lot of # well some of it, and it also strips some other stuff that a lot of