Skip to content
This repository has been archived by the owner on Nov 3, 2021. It is now read-only.

Commit

Permalink
Merge pull request #28876 from stasm/1143140-pseudol10n-exclude-html-…
Browse files Browse the repository at this point in the history
…entities

Bug 1143140 - Don't pseudolocalize HTML entities. r=gandalf
  • Loading branch information
stasm committed Mar 14, 2015
2 parents 3eee5ce + 0ee7336 commit 4868c56
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions build/l10n/qps.js
Expand Up @@ -111,8 +111,8 @@ function makeRTL(val) {
});
}

// strftime tokens (%a, %Eb) and template {vars}
var reExcluded = /(%[EO]?\w|\{\s*.+?\s*\})/;
// strftime tokens (%a, %Eb), template {vars} and HTML entities (‪)
var reExcluded = /(%[EO]?\w|\{\s*.+?\s*\}|&[#\w]+;)/;

function mapContent(fn, val) {
if (!val) {
Expand Down
4 changes: 2 additions & 2 deletions shared/js/l10n.js
Expand Up @@ -1076,8 +1076,8 @@
});
}

// strftime tokens (%a, %Eb) and template {vars}
var reExcluded = /(%[EO]?\w|\{\s*.+?\s*\})/;
// strftime tokens (%a, %Eb), template {vars} and HTML entities (‪)
var reExcluded = /(%[EO]?\w|\{\s*.+?\s*\}|&[#\w]+;)/;

function mapContent(fn, val) {
if (!val) {
Expand Down

0 comments on commit 4868c56

Please sign in to comment.