difftastic 0.1.0-x86_64-darwin → 0.1.1-x86_64-darwin

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: db2afcad5cbb3d471632a1f8ad39009973186904c7f035fadaa02b636598d4dc
4
- data.tar.gz: a5fc272eaac1425c405fa90354a2efbae1da242421db4895f585253a193d5501
3
+ metadata.gz: 9dd0d586c354e4466e67c79752c7ffb2ea3597d6a4c2fc027450b36482680810
4
+ data.tar.gz: 4c4c37d98742e5cc436915f89582d8bd7f26f8b6eef86638c1a0b75f78803506
5
5
  SHA512:
6
- metadata.gz: 8b5ce0b2bec2f0b4b7de75ddc681a1aec6b05eb006809d13c8629378330cd7cb52e3ea7f2116d32f9d02077899cda0ba4c740b5af196f8bebcbc1caea06d7b47
7
- data.tar.gz: 60beb71acbceb5bb83efd4513dab0e96ec17db1e3b04c68352faa3d90687c0203d3cafe270371ecf523e7a877830da6c26fe31135cacc4cea74f8d6182031d69
6
+ metadata.gz: 1c0f9c817005d9bc363caee3347258dd2d216bf0d7d2b4968388f5060fbb1a2906ea3ebeb35cd13b26aebc42ccfbd712f1dd8777fa6a25878920d1c084dce2c6
7
+ data.tar.gz: 74abe777ec89bc0dea9cf2364e8f86eae7ccbb635565c26268f14d1f79c040902a6ded4c78fd6a7cc277472a22646c6dfab8d7f2d3612777aa1a6d8f3163e6ba
@@ -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-darwin
6
6
  authors:
7
7
  - Joel Drapper