Skip to content
Snippets Groups Projects

Add the \\r character to the check for newline cleaning

Merged Martin Lowe requested to merge (removed):malowe/master/newline_checks into master
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
+ 1
1
@@ -110,7 +110,7 @@ json_data = {
:commits => processed_git_data
}
## Generate request (use gsub to scrub any lingering \n constants)
response = HTTParty.post("https://api.eclipse.org/git/eca", :body => MultiJson.dump(json_data).gsub('\\n', ''),
response = HTTParty.post("https://api.eclipse.org/git/eca", :body => MultiJson.dump(json_data).gsub(/(\\n|\\r)/, ''),
:headers => {
'Content-Type' => 'application/json',
'charset' => 'utf-8'
Loading