Fix parsing non-ascii tags

This commit is contained in:
tusooa 2023-07-21 13:54:10 -04:00
commit 0b0b1dabdf
No known key found for this signature in database
GPG key ID: 42AEC43D48433C51
3 changed files with 12 additions and 2 deletions

View file

@ -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('喵喵喵')
})
})
})