rails--rails/actionview/lib/action_view/template
Juan Guecaimburu bd0753b396 Add support to locales with lowdash in Resolver::PathParser
In previous versions of Rails, a dynamic regex was built to find templates.
After that, PathParser started to be used to both match and sort templates.
With the dynamic regex, templates with lowdash locales (es_AR) were
found properly. But the PathParser regex does not match locales with this
format, only allowing dash (es-AR) or no dash (es). Templates with lowdash
locales have a wrong virtual path and get filtered.

In this commit the PathParser regex is extended to support the lowdash.
2022-01-14 15:11:58 -03:00
..
handlers Add option to strip trailing newlines from ERB templates 2021-06-04 10:27:55 +01:00
sources Add ActionView::Template::Sources::File 2019-04-04 15:07:14 -07:00
error.rb Standardize nodoc comments 2021-07-29 21:18:07 +00:00
handlers.rb Standardize nodoc comments 2021-07-29 21:18:07 +00:00
html.rb Standardize nodoc comments 2021-07-29 21:18:07 +00:00
inline.rb Standardize nodoc comments 2021-07-29 21:18:07 +00:00
raw_file.rb Standardize nodoc comments 2021-07-29 21:18:07 +00:00
renderable.rb Include layout when rendering objects from controllers 2020-10-14 11:49:45 -06:00
resolver.rb Add support to locales with lowdash in Resolver::PathParser 2022-01-14 15:11:58 -03:00
sources.rb Add ActionView::Template::Sources::File 2019-04-04 15:07:14 -07:00
text.rb Standardize nodoc comments 2021-07-29 21:18:07 +00:00
types.rb Standardize nodoc comments 2021-07-29 21:18:07 +00:00