robisim74 / angular-l10n

Angular library to translate texts, dates and numbers
MIT License
380 stars 59 forks source link

Language detection regexp fix. #317

Closed s02 closed 3 years ago

s02 commented 3 years ago

Question mark shouldn't be included into capture.

Matching examples:

/en-US /en-US/ /en-USen-US/ not match /en-US/page?aaa=111 /en-US/page /en-US?aaa=111 /en-USx not match /en-US/en-US

robisim74 commented 3 years ago

@s02 Thanks again! I'll add tests for that.