Skip to content

Commit

Permalink
Fix last two test errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Cork authored and cork committed Mar 1, 2018
1 parent 195117d commit 7f7a3b0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/winrm/psrp/message_data/pipeline_output.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ def extract_out_string(text)
text = ''
if node.text
text << node.text.gsub(/(_x\h\h\h\h_)+/) do |match|
match.scan(/_x(\h\h\h\h)_/).flatten.map { |utf16| utf16.hex }.pack('S*').force_encoding('utf-16le').encode('utf-8')
match.scan(/_x(\h\h\h\h)_/).flatten.map(&:hex)
.pack('S*').force_encoding('utf-16le').encode('utf-8')
end.chomp
end
text << "\r\n"
Expand Down

0 comments on commit 7f7a3b0

Please sign in to comment.