aboutsummaryrefslogtreecommitdiff
path: root/test/unit/specs/services
diff options
context:
space:
mode:
authortusooa <tusooa@kazv.moe>2023-07-21 13:54:10 -0400
committertusooa <tusooa@kazv.moe>2023-07-21 14:03:49 -0400
commit0b0b1dabdfa2051d0b1d1ad846892da4801ca588 (patch)
tree19b03b4133095a1e5128c4a4441f3289402ed965 /test/unit/specs/services
parent510392e4ca67fee4bf6fed9346f1ff708966e734 (diff)
Fix parsing non-ascii tags
Diffstat (limited to 'test/unit/specs/services')
-rw-r--r--test/unit/specs/services/matcher/matcher.spec.js6
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('喵喵喵')
+ })
})
})