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/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
|
||||||
|
|
|
@ -8,17 +8,17 @@ 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,
|
||||||
:black => 30,
|
:black => 30,
|
||||||
:magenta => 35,
|
:magenta => 35,
|
||||||
:yellow => 33,
|
:yellow => 33,
|
||||||
: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
|
||||||
|
|
Loading…
Reference in New Issue