Skip to content

Commit

Permalink
Merge pull request #921 from the-hideout/improve-name-searching
Browse files Browse the repository at this point in the history
Improve TarkovCitizen name searches
  • Loading branch information
Razzmatazzz authored Apr 11, 2024
2 parents 87fe8c7 + 96e56b1 commit e59791c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/players/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ function Players() {

const searchTextValid = useMemo(() => {
const charactersValid = !!nameFilter.match(/^[a-zA-Z0-9-_]*$/);
const lengthValid = nameFilter.length >= 3 && nameFilter.length <= 15;
const lengthValid = !!nameFilter.match(/^[a-zA-Z0-9-_]{3,15}$|^TarkovCitizen\d{1,10}$/i);
setButtonDisabled(!charactersValid || !lengthValid);
setNameResultsError(false);
if (!charactersValid) {
Expand Down

0 comments on commit e59791c

Please sign in to comment.