Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/banzai/filter/task_list_filter.rb')
-rw-r--r--lib/banzai/filter/task_list_filter.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/banzai/filter/task_list_filter.rb b/lib/banzai/filter/task_list_filter.rb
index e8a7677b102..4f39a25ff68 100644
--- a/lib/banzai/filter/task_list_filter.rb
+++ b/lib/banzai/filter/task_list_filter.rb
@@ -32,7 +32,7 @@ module Banzai
XPATH = 'descendant-or-self::li[input[@data-inapplicable]] | descendant-or-self::li[p[input[@data-inapplicable]]]'
INAPPLICABLE = '[~]'
- INAPPLICABLEPATTERN = /\[~\]/.freeze
+ INAPPLICABLEPATTERN = /\[~\]/
# Pattern used to identify all task list items.
# Useful when you need iterate over all items.
@@ -46,7 +46,7 @@ module Banzai
#{INAPPLICABLEPATTERN}
)
(?=\s) # followed by whitespace
- /x.freeze
+ /x
# Force the gem's constant to use our new one
superclass.send(:remove_const, :ItemPattern) # rubocop: disable GitlabSecurity/PublicSend