Skip to content

Commit

Permalink
fix(ceremony): fix normalize
Browse files Browse the repository at this point in the history
  • Loading branch information
Swepool committed Sep 18, 2024
1 parent 112a8c0 commit 772cd12
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ceremony/src/lib/components/Join.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,16 @@ function handlePaste(e: ClipboardEvent): void {
}
function normalizeString(words: Array<string>): string {
return words.map(word => word.trim().toLowerCase()).join("")
return words
.map(word => word.trim().toLowerCase())
.join("")
.replace(/[^a-z0-9]/gi, "")
}
async function handleCodeJoin() {
codeLoading = true
try {
console.log(code)
const codeOk = await callJoinQueue(code)
if (codeOk) {
contributor.setAllowanceState("hasRedeemed")
Expand Down

0 comments on commit 772cd12

Please sign in to comment.