Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support to locales with lowdash in Resolver::PathParser #44174

Commits on Jan 14, 2022

  1. 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.
    jguecaimburu committed Jan 14, 2022
    Configuration menu
    Copy the full SHA
    bd0753b View commit details
    Browse the repository at this point in the history