fix #3232 (regression from 386e8bee9c)

This commit is contained in:
gorhill 2017-11-15 16:32:52 -05:00
parent 11cba7b1a7
commit 118240d36d
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2
1 changed files with 2 additions and 1 deletions

View File

@ -1079,7 +1079,8 @@
var re;
// Matches language?
if ( typeof details.lang === 'string' ) {
if ( this.listMatchesEnvironment.reLang === undefined ) {
re = this.listMatchesEnvironment.reLang;
if ( re === undefined ) {
re = new RegExp('\\b' + self.navigator.language.slice(0, 2) + '\\b');
this.listMatchesEnvironment.reLang = re;
}