lib/pragmater/formatters/general.rb in pragmater-8.3.0 vs lib/pragmater/formatters/general.rb in pragmater-9.0.0
- old
+ new
@@ -11,10 +11,10 @@
\w+ # Key - One or more word characters only.
: # Delimiter.
\s? # Space - optional.
[\w-]+ # Value - One or more word or dash characters.
\Z # End of line.
- /x.freeze
+ /x
def initialize string, pattern: PATTERN
@string = string
@pattern = pattern
end