diff --git a/lib/commons/text/unicode.js b/lib/commons/text/unicode.js index 25cade6e65..8bf121a7b5 100644 --- a/lib/commons/text/unicode.js +++ b/lib/commons/text/unicode.js @@ -121,7 +121,7 @@ function getPunctuationRegExp() { * Reference: https://en.wikipedia.org/wiki/Supplemental_Punctuation * -> \u2E00-\u2E7F Reference */ - return /[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,\-.\/:;<=>?@\[\]^_`{|}~]/g; + return /[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&£¢¥§€()*+,\-.\/:;<=>?@\[\]^_`{|}~±]/g; } /** diff --git a/test/commons/text/unicode.js b/test/commons/text/unicode.js index e98d6b267b..794bed82cb 100644 --- a/test/commons/text/unicode.js +++ b/test/commons/text/unicode.js @@ -139,6 +139,15 @@ describe('text.hasUnicode', function() { }); assert.isTrue(actual); }); + + it('returns true for strings with money signs and odd symbols', function() { + ['£', '¢', '¥', '€', '§', '±'].forEach(function(str) { + var actual = axe.commons.text.hasUnicode(str, { + punctuations: true + }); + assert.isTrue(actual); + }); + }); }); describe('text.hasUnicode, has combination of unicode', function() {