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 mwrock committed Oct 16, 2018
1 parent 11fccc6 commit 6162be0
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 @@ -31,7 +31,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 6162be0

Please sign in to comment.