mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 14:38:45 +00:00
chore(resources): General Linting
This commit is contained in:
1 parent
457926263d
commit
f1012958e2
15 files changed
+25
-34
No files matched your search
@@ -7,7 +7,7 @@ import { clean } from './miscUtils';
|
||||
*/
|
||||
export async function generateProfileName(
|
||||
identifier: string,
|
||||
delimiter: string = '_',
|
||||
delimiter = '_',
|
||||
): Promise<string | null> {
|
||||
const player = PlayerService.getPlayerFromIdentifier(identifier);
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// Will apply any type to source
|
||||
export const getSource = () => (global as any).source;
|
||||
export const getSource = (): number => (global as any).source;
|
||||
|
||||
// Will clean string of any character that isn't 0-9, or a-z
|
||||
export const clean = (input: string) => (input ? input.replace(/[^0-9a-z]/gi, '') : input);
|
||||
export const clean = (input: string): string => (input ? input.replace(/[^0-9a-z]/gi, '') : input);
|
||||
Reference in new issue
Block a user