mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
9b423ac0b7
The purpose of this regexp is to detect strings that are valid identifiers to be used as method names. The anchor $ allows a trailing newline, and both ^ and $ may be bypassed because Ruby regexps are multiline always. The anchors \A and \z are the proper ones to ensure string boundaries. |
||
---|---|---|
.. | ||
active_model | ||
active_model.rb |