Skip to content

Commit

Permalink
Remove calls to Regexp#freeze as it's an immutable object.
Browse files Browse the repository at this point in the history
Rubocop offense introduced by #8629
  • Loading branch information
parkr committed Apr 7, 2021
1 parent 9bdb9c9 commit 2b31497
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/jekyll/tags/include.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ class IncludeTag < Liquid::Tag
(?<params>.*)
!mx

FULL_VALID_SYNTAX = %r!\A\s*(?:#{VALID_SYNTAX}(?=\s|\z)\s*)*\z!.freeze
VALID_FILENAME_CHARS = %r!^[\w/.\-()+~\#@]+$!.freeze
INVALID_SEQUENCES = %r![./]{2,}!.freeze
FULL_VALID_SYNTAX = %r!\A\s*(?:#{VALID_SYNTAX}(?=\s|\z)\s*)*\z!
VALID_FILENAME_CHARS = %r!^[\w/.\-()+~\#@]+$!
INVALID_SEQUENCES = %r![./]{2,}!

def initialize(tag_name, markup, tokens)
super
Expand Down

0 comments on commit 2b31497

Please sign in to comment.