difftastic 0.1.0-x86_64-linux → 0.1.1-x86_64-linux

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e2c3e55cac019f1c83594773c618419e0e8969c99b74acbd9e22152d61dcc1d2
4
- data.tar.gz: f880a81b33d2a7b6d820b0db39170d5b45f14744bfcb6456687998d4c9e5be30
3
+ metadata.gz: 1524170bbdf1c4ef2f2d153868b05d1092a2c8cccdd52c46a2fc4d73a7991263
4
+ data.tar.gz: a328ea695db524b684d048c5e9c4082436cbb0b220b4fdceea58324f399fd074
5
5
  SHA512:
6
- metadata.gz: e75bd7b43d51166ca6f5ae13dd56c51f61ffb7e12c4b39f9ee30cb62fa59f1b8cf2e992e9441efb0e0a7b9d814d69fe88b32d1510b81e72211fc765d3944b46b
7
- data.tar.gz: 91f39e4083bbc5357dcd4b48180d41294d6fdac2d57c20cf6f789f54fa2cfb55792a4423e5672bf60c765e1d6ddf3850dbe9d96a430b1706b1bcdaee0eb78fbf
6
+ metadata.gz: 9d786b9393b64805eeea014874285538ff03cdec94d241982a21eea4cf2251c60128dee675409cff4860dbd40a252f343a33500550f680aec4813f4aededfa5f
7
+ data.tar.gz: e665b1049f4912881fa8f9bb2d8c2ba67729286fa39f191bc5879bc1a3616e43ea6100f3d476d0340ce03e6035be7f35b803f630985b9f60c1c76e79af5bd950
@@ -297,16 +297,17 @@ class Difftastic::Differ
297
297
  result = result.byteslice(new_line_index, result.bytesize - new_line_index)
298
298
  end
299
299
 
300
- if @underline_highlights
301
- result.gsub!(/\e\[([0-9;]*)m/) {
302
- codes = $1
303
- if codes =~ /9[12]/ # Matches 91 or 92
304
- "\e[#{codes};4m"
305
- else
306
- "\e[#{codes}m"
307
- end
308
- }
309
- end
300
+ # Removed due to inconsistencies in the original output. Need to improve the pattern matching.
301
+ # if @underline_highlights
302
+ # result.gsub!(/\e\[([0-9;]*)m/) {
303
+ # codes = $1
304
+ # if codes =~ /9[12];1|1;9[12]/ # Matches 91;1, 92;1, 1;91, or 1;92
305
+ # "\e[#{codes};4m"
306
+ # else
307
+ # "\e[#{codes}m"
308
+ # end
309
+ # }
310
+ # end
310
311
 
311
312
  result
312
313
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Difftastic
4
- VERSION = "0.1.0"
4
+ VERSION = "0.1.1"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: difftastic
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: x86_64-linux
6
6
  authors:
7
7
  - Joel Drapper