(host: string)
| 845 | } |
| 846 | |
| 847 | function isLocalHost(host: string): boolean { |
| 848 | const hostWithoutPort = host.split(':')[0] ?? '' |
| 849 | return ( |
| 850 | hostWithoutPort === 'localhost' || |
| 851 | /^127\.\d{1,3}\.\d{1,3}\.\d{1,3}$/.test(hostWithoutPort) |
| 852 | ) |
| 853 | } |
| 854 | |
| 855 | /** |
| 856 | * Checks if the current working directory appears to be a bare git repository |
no outgoing calls
no test coverage detected