fix encode bugs on diff not utf-8 encode's code
This commit is contained in:
parent
f114a4f349
commit
12c01d7401
2 changed files with 3 additions and 3 deletions
|
@ -2,7 +2,7 @@
|
|||
- line_new = 0
|
||||
- lines_arr = diff.diff.lines.to_a
|
||||
- lines_arr.each do |line|
|
||||
- encode(line)
|
||||
- line = encode(line)
|
||||
- next if line.match(/^--- \/dev\/null/)
|
||||
- next if line.match(/^--- a/)
|
||||
- next if line.match(/^\+\+\+ b/)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue