difftastic 0.1.0-arm64-darwin → 0.1.1-arm64-darwin

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: aae231eb5fbf1b3b7ac2794e3e7f9ca12bc96e5a7087c340804dbf258312d8d1
4
- data.tar.gz: b727926817ba25c1fae57d5445150587665fc878b00ed310f4a088b2c8c9f0b5
3
+ metadata.gz: 5e7d0f33978bda03dc6778e4bcb5226e2ded8185c9da2aa06c6c8aa1149e81c2
4
+ data.tar.gz: 52f4134afa5f80838ff867722f47b3caf19450437f3a5b553cf80a21122abdc6
5
5
  SHA512:
6
- metadata.gz: 61e625e624f576a5e102802aa252ce0ad979fee604e5b6e41b4ed08616d0cd0fcdf28e7153a13a195fa86f5dc7982fd7009c951624eb50cd732f507ada42281a
7
- data.tar.gz: 83cc015eeac832013ec6655d9560634d7768244bb4a6d9b9e149b2e515541bbe3767184e7b6c8d21a0b476b268b2a562e22cac25ef0bae88217a9b6ff14aa4cc
6
+ metadata.gz: ecb13cb6c4ec3122742f5a5793949600971682a3e7b96de2c7be1170f00d69f96958a83dc87fa17c97bd9bfc1d9a5783d4b9f226ab406f9b62477447d22c06e6
7
+ data.tar.gz: 60495f251eb1c2271de9c6e0ecbae0cf1ade45ddf70539472f8ad93c80e4f6910591d776f1ad1edc72ac192c1e09c9a93e630a6e188218b52d7a68c5c400f3f6
@@ -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: arm64-darwin
6
6
  authors:
7
7
  - Joel Drapper