mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-05-03 14:27:03 +02:00
CODEBASE: Expand lint rules, and Aliases are stored as maps (#501)
This commit is contained in:
@@ -6,7 +6,7 @@ export type ServerName = string /*& { __type: "ServerName" }*/;
|
||||
}*/
|
||||
|
||||
// IP Address
|
||||
export type IPAddress = string /*& { __type: "IPAddress" }*/;
|
||||
export type IPAddress = string & { __type: "IPAddress" };
|
||||
export function isIPAddress(value: string): value is IPAddress {
|
||||
const regex =
|
||||
/^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/;
|
||||
|
||||
Reference in New Issue
Block a user