Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
leighmacdonald committed Jan 2, 2024
1 parent 93b4059 commit a2ff026
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion frontend/src/api/bans.ts
Original file line number Diff line number Diff line change
Expand Up @@ -525,4 +525,4 @@ export interface sbBanRecord {
}

export const apiGetSourceBans = async (steam_id: string) =>
await apiCall<sbBanRecord[]>(`/api/sourcebans/${steam_id}`, 'GET');
await apiCall<sbBanRecord[]>(`/api/sourcebans/${steam_id}`, 'GET');
2 changes: 1 addition & 1 deletion frontend/src/util/text.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,4 +98,4 @@ export const avatarHashToURL = (hash?: string, size: avatarSize = 'full') => {
return `https://avatars.steamstatic.com/${hash ?? defaultAvatarHash}${
size == 'small' ? '' : `_${size}`
}.jpg`;
};
};
2 changes: 1 addition & 1 deletion frontend/src/util/validators.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,4 +109,4 @@ export const steamIDOrEmptyString = async (
const ipRegex =
/^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$/gi;

export const isValidIP = (value: string): boolean => ipRegex.test(value);
export const isValidIP = (value: string): boolean => ipRegex.test(value);

0 comments on commit a2ff026

Please sign in to comment.