This project is archived and is in readonly mode.
[PATCH] Uncountable singularize uses regex match while pluralize uses exact match leading leading to unexpected collisions
-
John Paul Ashenfelter
- Tag set to bug, patch
-
John Paul Ashenfelter
- Title changed from Uncountable singularize uses regex match while pluralize uses exact match leading leading to unexpected collisions to [PATCH] Uncountable singularize uses regex match while pluralize uses exact match leading leading to unexpected collisions
-
John Paul Ashenfelter
- Tag changed from bug, patch to activesupport, bug, patch
-
Aditya Sanghi
- State changed from new to open
- Milestone cleared.
- Assigned user set to Xavier Noria
- Importance changed from to Low
-
Lake
+1 Tests are passing on master.
Nicely done, JP.
-
Vijay Dev
#6040 ActiveSupport - Incorrect Inflectors for "nurseries" deals with the same issue.
-
Piotr Sarnacki
John: only one thing, you should move the last line of second test to ensure:
ensure ActiveSupport::Inflector.inflections.instance_variable_set :@uncountables, cached_uncountables endif that test breaks, other tests will not break because of that.
-
Repository
- State changed from open to resolved
(from [9b4622a483319f3d1e7f4489442f0d86afb6da36]) Added a word boundary to uncountable inflection regex for #singularize so short inflections like ors do not affect larger words like sponsors [#6093 [PATCH] Uncountable singularize uses regex match while pluralize uses exact m... state:resolved] https://github.com/rails/rails/commit/9b4622a483319f3d1e7f4489442f0...
-
Repository
(from [cad4f0030969476941ec62096b9c84070355b823]) Added a word boundary to uncountable inflection regex for #singularize so short inflections like ors do not affect larger words like sponsors [#6093 [PATCH] Uncountable singularize uses regex match while pluralize uses exact m... state:resolved] https://github.com/rails/rails/commit/cad4f0030969476941ec62096b9c8...
