diff options
Diffstat (limited to 'lib/api')
| -rw-r--r-- | lib/api/licenses.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/api/licenses.rb b/lib/api/licenses.rb index dac29df30f9..f9536fc82bb 100644 --- a/lib/api/licenses.rb +++ b/lib/api/licenses.rb @@ -5,12 +5,12 @@ module API /[\<\{\[] (project|description| one\sline\s.+\swhat\sit\sdoes\.) # matching the start and end is enough here - [\>\}\]]/xi - YEAR_TEMPLATE_REGEX = /[<{\[](year|yyyy)[>}\]]/i + [\>\}\]]/xi.freeze + YEAR_TEMPLATE_REGEX = /[<{\[](year|yyyy)[>}\]]/i.freeze FULLNAME_TEMPLATE_REGEX = /[\<\{\[] (fullname|name\sof\s(author|copyright\sowner)) - [\>\}\]]/xi + [\>\}\]]/xi.freeze # Get the list of the available license templates # |
