diff options
-rw-r--r-- | sonar-server/src/main/webapp/WEB-INF/app/models/snapshot_source.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sonar-server/src/main/webapp/WEB-INF/app/models/snapshot_source.rb b/sonar-server/src/main/webapp/WEB-INF/app/models/snapshot_source.rb index b2eff95b0d2..4fa80501405 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/models/snapshot_source.rb +++ b/sonar-server/src/main/webapp/WEB-INF/app/models/snapshot_source.rb @@ -83,6 +83,8 @@ class SnapshotSource < ActiveRecord::Base private def self.split_newlines(input) - input.split(/\r?\n|\r/) + # Don't limit number of returned fields and don't suppress trailing empty fields by setting second parameter to negative value. + # See http://jira.codehaus.org/browse/SONAR-2282 + input.split(/\r?\n|\r/, -1) end end |