symfony/symfony — pull request #11441 by jeremy-derusse (2014-07-22 22:00:46+00:00)
Title: [Translator] Optimize assertLocale regexp

| Q | A
| ------------- | ---
| Bug fix? | yes
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets |
| License | MIT
| Doc PR |

Optimize regexp by remove unused variable and using anchored regex.
Thanks @Tobion