New assembly attributes are always added to the end of AssemblyInfo.cs

dependabot/npm_and_yarn/BuildServer/eslint-7.2.0
Inga 🏳‍🌈 9 years ago
parent 54434b3e2d
commit 6ebcf4e31f
  1. 6
      BuildServer/lib/tasks/dotnetrewrite.js

@ -6,11 +6,7 @@ var glob = require('glob');
var settings = require('../../settings');
var addAssemblyAttribute = function (content, attribute) {
var regex = /\[\s*assembly/;
if (regex.test(content)) {
return content.replace(regex, attribute + "\r\n[assembly");
}
return content + attribute + "\r\n";
return content + "\n" + attribute + "\n";
}
module.exports = function (params, processor) {

Loading…
Cancel
Save