diff --git a/anchor-markdown-header.js b/anchor-markdown-header.js index ac7bdb1..506b529 100644 --- a/anchor-markdown-header.js +++ b/anchor-markdown-header.js @@ -27,7 +27,7 @@ function basicGithubId(text) { // CJK punctuations that are removed .replace(/[。?!,、;:“”【】()〔〕[]﹃﹄“ ”‘’﹁﹂—…-~《》〈〉「」]/g, '') // latin-1 supplement chars that are removed - .replace(/[¡¢£¤¥¦§¨©«¬®¯±²³´¶·¸¹º»¼½¾¿]/g, '') + .replace(/[¡¢£¤¥¦§¨©«¬®¯°±²³´¶·¸¹»¼½¾¿]/g, '') ; } diff --git a/test/anchor-markdown-header.js b/test/anchor-markdown-header.js index a0653d7..aa15697 100644 --- a/test/anchor-markdown-header.js +++ b/test/anchor-markdown-header.js @@ -78,7 +78,7 @@ test('\ngenerating anchor in github mode', function (t) { , [ '_foo_bax_', null, '#foo_bax'] , [ '10% off', null, '#10-off'] , [ '1/2 affected', null, '#12-affected'] - , [ '¡¢£¤¥¦§¨©ª«¬®¯°±²³´µ¶·¸¹º»¼½¾¿Latin 1', null, '#%C2%AA%C2%B0%C2%B5latin-1'] + , [ '¡¢£¤¥¦§¨©ª«¬®¯°±²³´µ¶·¸¹º»¼½¾¿Latin 1', null, '#%C2%AA%C2%B5%C2%BAlatin-1'] ].forEach(function (x) { check(x[0], x[1], x[2]) }); t.end();