UrlEncode patterns in cosmetics.json (#1273)

## Description:

Use base64url encoding for patterns.

## Please complete the following:

- [x] I have added screenshots for all UI updates
- [x] I process any text displayed to the user through translateText()
and I've added it to the en.json file
- [x] I have added relevant tests to the test directory
- [x] I confirm I have thoroughly tested these changes and take full
responsibility for any bugs introduced
- [x] I understand that submitting code with bugs that could have been
caught through manual testing blocks releases and new features for all
contributors
This commit is contained in:
Scott Anderson
2025-06-25 23:20:08 -04:00
committed by GitHub
parent b181c6c15d
commit 1b1ed9bf3f
2 changed files with 18 additions and 18 deletions
+17 -17
View File
@@ -4,35 +4,35 @@
"creator": ["1286745100411473930"]
},
"patterns": {
"ABMIVVU=": {
"ABMIVVU": {
"name": "stripes_v"
},
"ABMIDw8=": {
"ABMIDw8": {
"name": "stripes_h"
},
"ABMIpaU=": {
"ABMIpaU": {
"name": "checkerboard"
},
"AFIoAAABOEAHgkAc+AN/4AMcgAAA": {
"AFIoAAABOEAHgkAc-AN_4AMcgAAA": {
"name": "choco"
},
"AHE4AQACAAQACAAQACAAQACAAAABAAIABAAIABAAIABAAIA=": {
"AHE4AQACAAQACAAQACAAQACAAAABAAIABAAIABAAIABAAIA": {
"name": "diagonal",
"role_group": "donor"
},
"AHE4AYACQAQgCBAQCCAEQAKAAYABQAIgBBAICBAEIAJAAYA=": {
"AHE4AYACQAQgCBAQCCAEQAKAAYABQAIgBBAICBAEIAJAAYA": {
"name": "cross",
"role_group": "donor"
},
"AHEYA8AMMDAMwAPAAzAMDDADwA==": {
"AHEYA8AMMDAMwAPAAzAMDDADwA": {
"name": "mini_cross",
"role_group": "donor"
},
"AHE4//8AAAAAAAAAAAAAAAAAAP//AAAAAAAAAAAAAAAAAAA=": {
"AHE4__8AAAAAAAAAAAAAAAAAAP__AAAAAAAAAAAAAAAAAAA": {
"name": "horizontal_stripes",
"role_group": "donor"
},
"AHE4AQEAAAAAAAAAAAAAAAAAAAEBAAAAAAAAAAAAAAAAAAA=": {
"AHE4AQEAAAAAAAAAAAAAAAAAAAEBAAAAAAAAAAAAAAAAAAA": {
"name": "sparse_dots",
"role_group": "donor"
},
@@ -40,35 +40,35 @@
"name": "evan",
"role_group": "creator"
},
"AHEYAYACQAQgCBAQCCAEQAKAAQ==": {
"AHEYAYACQAQgCBAQCCAEQAKAAQ": {
"name": "diagonal_stripe",
"role_group": "donor"
},
"AHEYAAAYGDw8fn7//35+PDwYGA==": {
"AHEYAAAYGDw8fn7__35-PDwYGA": {
"name": "mountain_ridge",
"role_group": "donor"
},
"AHEYAAACIAAAAAAAAAAACBAAAA==": {
"AHEYAAACIAAAAAAAAAAACBAAAA": {
"name": "scattered_dots",
"role_group": "donor"
},
"AHEYw8PDwwwMDAwwDDAMw8PDww==": {
"AHEYw8PDwwwMDAwwDDAMw8PDww": {
"name": "circuit_board",
"role_group": "donor"
},
"AHEYSZJJkkmSSZJJkkmSSZJJkg==": {
"AHEYSZJJkkmSSZJJkkmSSZJJkg": {
"name": "vertical_bars",
"role_group": "donor"
},
"AHEYAAAAAAAAAkCCQUQiLnQWaA==": {
"AHEYAAAAAAAAAkCCQUQiLnQWaA": {
"name": "-w-",
"role_group": "donor"
},
"AHE4AAAAAKAAUAFQAVABCC4EUCQgJCAEIDgm0BBwDwAAAAA=": {
"AHE4AAAAAKAAUAFQAVABCC4EUCQgJCAEIDgm0BBwDwAAAAA": {
"name": "white_rabbit",
"role_group": "donor"
},
"AAIiAAAAAAAAAAAAAAAAAAAAAIDD8YnweTiiD5FIYEIgEpkIRCKBCoFIpCIQeTwyPB6RjEAkEIgQKEQiApFAIEIgEYkIOAKfCIGIIyIAAAAAAAAAAAA=": {
"AAIiAAAAAAAAAAAAAAAAAAAAAIDD8YnweTiiD5FIYEIgEpkIRCKBCoFIpCIQeTwyPB6RjEAkEIgQKEQiApFAIEIgEYkIOAKfCIGIIyIAAAAAAAAAAAA": {
"name": "openfront",
"role_group": "creator"
}
+1 -1
View File
@@ -182,7 +182,7 @@ export const FlagSchema = z.string().max(128).optional();
export const RequiredPatternSchema = z
.string()
.max(128)
.base64()
.base64url()
.refine(
(val) => {
try {