Skip to content

Commit

Permalink
symbols removed that cannot be in links
Browse files Browse the repository at this point in the history
  • Loading branch information
maddox05 committed Sep 9, 2023
1 parent 920fc47 commit 8058dd6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ async function mini_link_creator() {
}
if (auth.currentUser.uid !== null && is_link_valid(normal_link_input.value)) {
let mini_link = "";
const characters = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789!@#$^&*";
const characters = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789!@$*";
for (let i = 0; i < 5; i++) {
mini_link += characters.charAt(Math.floor(Math.random() * characters.length));
}
Expand Down

0 comments on commit 8058dd6

Please sign in to comment.