theDavidBarton/trending-movies-react-app

stricter url regex matching

Closed this issue · 1 comments

currently:
https://trending-movies-react-app.herokuapp.com/hung%C3%A1rian => https://trending-movies-react-app.herokuapp.com/hu

https://trending-movies-react-app.herokuapp.com/engels = > https://trending-movies-react-app.herokuapp.com/en

also if we try to use lang selector after such fake path-s was put in the navigation: it will only modify the first 2 characters (which still works for some point)

it is a behaviour on TMDb's side:
https://api.themoviedb.org/3/trending/movie/day?api_key={api_key}&language=svenskej => language=sv

their regex is not strict