Skip to content

Commit

Permalink
Fix testsuite error
Browse files Browse the repository at this point in the history
  • Loading branch information
Cork authored and cork committed Mar 1, 2018
1 parent a99f9f2 commit 195117d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 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,7 @@ 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 { |utf16| utf16.hex }.pack('S*').force_encoding('utf-16le').encode('utf-8')
end.chomp
end
text << "\r\n"
Expand Down

0 comments on commit 195117d

Please sign in to comment.