mirror of https://github.com/rails/rails
\Z -> \z
Here we want end of string, no optional newlines are to be expected, so \z is more concise.
This commit is contained in:
parent
09b15145d6
commit
fcc8c6868c
|
@ -10,7 +10,7 @@ class Module
|
|||
if defined?(@parent_name)
|
||||
@parent_name
|
||||
else
|
||||
parent_name = name =~ /::[^:]+\Z/ ? -$` : nil
|
||||
parent_name = name =~ /::[^:]+\z/ ? -$` : nil
|
||||
@parent_name = parent_name unless frozen?
|
||||
parent_name
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue