1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-11-24 03:12:46 +01:00

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

View File

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