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 +4 -4
- data/lib/difftastic/differ.rb +11 -10
- data/lib/difftastic/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5e7d0f33978bda03dc6778e4bcb5226e2ded8185c9da2aa06c6c8aa1149e81c2
|
4
|
+
data.tar.gz: 52f4134afa5f80838ff867722f47b3caf19450437f3a5b553cf80a21122abdc6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ecb13cb6c4ec3122742f5a5793949600971682a3e7b96de2c7be1170f00d69f96958a83dc87fa17c97bd9bfc1d9a5783d4b9f226ab406f9b62477447d22c06e6
|
7
|
+
data.tar.gz: 60495f251eb1c2271de9c6e0ecbae0cf1ade45ddf70539472f8ad93c80e4f6910591d776f1ad1edc72ac192c1e09c9a93e630a6e188218b52d7a68c5c400f3f6
|
data/lib/difftastic/differ.rb
CHANGED
@@ -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
|
-
|
301
|
-
|
302
|
-
|
303
|
-
|
304
|
-
|
305
|
-
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
|
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
|
data/lib/difftastic/version.rb
CHANGED