diff --git a/src/js/storage.js b/src/js/storage.js index 612ba1689..a9a5d9374 100644 --- a/src/js/storage.js +++ b/src/js/storage.js @@ -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; }