Rubocop fixes for lib/jekyll/utils/ansi.rb
This commit is contained in:
parent
e85f2a0ee9
commit
d743c80357
|
@ -62,7 +62,6 @@ AllCops:
|
|||
- lib/jekyll/tags/post_url.rb
|
||||
- lib/jekyll/theme.rb
|
||||
- lib/jekyll/url.rb
|
||||
- lib/jekyll/utils/ansi.rb
|
||||
- lib/jekyll/utils/platforms.rb
|
||||
- lib/jekyll/utils.rb
|
||||
- lib/jekyll.rb
|
||||
|
|
|
@ -8,7 +8,7 @@ module Jekyll
|
|||
extend self
|
||||
|
||||
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 = {
|
||||
:red => 31,
|
||||
:green => 32,
|
||||
|
@ -18,7 +18,7 @@ module Jekyll
|
|||
:white => 37,
|
||||
:blue => 34,
|
||||
:cyan => 36
|
||||
}
|
||||
}.freeze
|
||||
|
||||
# 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
|
||||
|
|
Loading…
Reference in New Issue