diff options
Diffstat (limited to 'app/models/license_template.rb')
-rw-r--r-- | app/models/license_template.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/models/license_template.rb b/app/models/license_template.rb index 548066107c1..bfe2a8d379e 100644 --- a/app/models/license_template.rb +++ b/app/models/license_template.rb @@ -5,12 +5,12 @@ class LicenseTemplate %r{[\<\{\[] (project|description| one\sline\s.+\swhat\sit\sdoes\.) # matching the start and end is enough here - [\>\}\]]}xi.freeze - YEAR_TEMPLATE_REGEX = /[<{\[](year|yyyy)[>}\]]/i.freeze + [\>\}\]]}xi + YEAR_TEMPLATE_REGEX = /[<{\[](year|yyyy)[>}\]]/i FULLNAME_TEMPLATE_REGEX = %r{[\<\{\[] (fullname|name\sof\s(author|copyright\sowner)) - [\>\}\]]}xi.freeze + [\>\}\]]}xi attr_reader :key, :name, :project, :category, :nickname, :url, :meta |