Added tests for tag name extraction from tag links & search queries

This commit is contained in:
koloml committed 2026-06-13 21:56:31 +04:00
1 parent b905ed668c
commit 726c4dfe58
2 files changed
+74 -1

No files matched your search

+1 -1
View File
@@ -42,7 +42,7 @@ const tagLinkRegExp = /\/tags\/(?<encodedTagName>[^/?#]+)/;
*
* @see https://github.com/philomena-dev/philomena/blob/6086757b654da8792ae52adb2a2f501ea6c30d12/lib/philomena/slug.ex#L52-L57
*/
const slugEncodedCharacters: Map<string, string> = new Map([
export const slugEncodedCharacters: Map<string, string> = new Map([
['-dash-', '-'],
['-fwslash-', '/'],
['-bwslash-', '\\'],