diff options
| author | tusooa <tusooa@kazv.moe> | 2023-07-21 13:54:10 -0400 |
|---|---|---|
| committer | tusooa <tusooa@kazv.moe> | 2023-07-21 14:03:49 -0400 |
| commit | 0b0b1dabdfa2051d0b1d1ad846892da4801ca588 (patch) | |
| tree | 19b03b4133095a1e5128c4a4441f3289402ed965 /test | |
| parent | 510392e4ca67fee4bf6fed9346f1ff708966e734 (diff) | |
Fix parsing non-ascii tags
Diffstat (limited to 'test')
| -rw-r--r-- | test/unit/specs/services/matcher/matcher.spec.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/unit/specs/services/matcher/matcher.spec.js b/test/unit/specs/services/matcher/matcher.spec.js index 7a2494f0..c6e9719d 100644 --- a/test/unit/specs/services/matcher/matcher.spec.js +++ b/test/unit/specs/services/matcher/matcher.spec.js @@ -78,5 +78,11 @@ describe('MatcherService', () => { expect(MatcherService.extractTagFromUrl(url)).to.eql(false) }) + + it('should return tag name from non-ascii tags', () => { + const url = encodeURI('https://website.com/tag/喵喵喵') + + expect(MatcherService.extractTagFromUrl(url)).to.eql('喵喵喵') + }) }) }) |
