summaryrefslogtreecommitdiff
path: root/lib/api
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2016-04-12 16:56:18 +0200
committerRémy Coutable <remy@rymai.me>2016-04-18 14:47:50 +0200
commit0aaaae9d0536c5637662f6c72a6612ec13f0342f (patch)
treef03fa75aa927b1456234f83dfa0fec9b4e434832 /lib/api
parent13804aba867d19009ca94d820aa7ec650a509f5a (diff)
downloadgitlab-ce-0aaaae9d0536c5637662f6c72a6612ec13f0342f.tar.gz
Fix features specs (hopefully)
Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'lib/api')
-rw-r--r--lib/api/licenses.rb6
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
#