Skip to content

Commit

Permalink
Update main.js
Browse files Browse the repository at this point in the history
  • Loading branch information
haxgun authored Mar 27, 2024
1 parent 58363a1 commit 6c373e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const apiUrl = "https://api.henrikdev.xyz/valorant";
let playerData;

async function checkNickname(name) {
const regex = /^[a-zA-Zа-яА-Я0-9\s]{1,16}#[a-zA-Zа-яА-Я0-9]{1,5}$/;
const regex = /^[\p{L}\p{N}\s]{1,16}#[\p{L}\p{N}]{1,5}$/u;

if (name.length === 0) {
alertText.innerHTML = "Please enter a nickname";
Expand Down

0 comments on commit 6c373e2

Please sign in to comment.