diff options
| author | HJ <30-hj@users.noreply.git.pleroma.social> | 2023-08-22 20:37:29 +0000 |
|---|---|---|
| committer | HJ <30-hj@users.noreply.git.pleroma.social> | 2023-08-22 20:37:29 +0000 |
| commit | cc0a63736a159bc03b77bbd4c62a684d1294e3d2 (patch) | |
| tree | 412229cab310cbbe75acdcf363f6fb2c40f2344c /test | |
| parent | f059c1f314be5979d32cd5726b28fd1b21738972 (diff) | |
| parent | 0b0b1dabdfa2051d0b1d1ad846892da4801ca588 (diff) | |
Merge branch 'tusooa/1274-nonascii-tags' into 'develop'
Fix parsing non-ascii tags
Closes #1274
See merge request pleroma/pleroma-fe!1848
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('喵喵喵') + }) }) }) |
