mirror of
https://github.com/openclaw/openclaw.git
synced 2026-03-30 03:11:10 +00:00
6 lines
167 B
TypeScript
6 lines
167 B
TypeScript
const ADDRESS_IN_USE_RE = /address already in use|EADDRINUSE/i;
|
|
|
|
export function isAddressInUseError(line: string): boolean {
|
|
return ADDRESS_IN_USE_RE.test(line);
|
|
}
|