Skip to content

Commit 6e5a9ab

Browse files
committed
Fix eslint error
1 parent 20dc462 commit 6e5a9ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/mongodb-build-info/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import ConnectionString from 'mongodb-connection-string-url';
33
const ATLAS_REGEX = /\.mongodb(-dev|-qa|-stage)?\.net$/i;
44
const ATLAS_STREAM_REGEX = /^atlas-stream-.+/i;
55
const LOCALHOST_REGEX =
6-
/^(localhost|127\.([01]?[0-9][0-9]?|2[0-4][0-9]|25[0-5])\.([01]?[0-9][0-9]?|2[0-4][0-9]|25[0-5])\.([01]?[0-9][0-9]?|2[0-4][0-9]|25[0-5])|0\.0\.0\.0|(?:0*\:)*?:?0*1)$/i;
6+
/^(localhost|127\.([01]?[0-9][0-9]?|2[0-4][0-9]|25[0-5])\.([01]?[0-9][0-9]?|2[0-4][0-9]|25[0-5])\.([01]?[0-9][0-9]?|2[0-4][0-9]|25[0-5])|0\.0\.0\.0|(?:0*:)*?:?0*1)$/i;
77
const DIGITAL_OCEAN_REGEX = /\.mongo\.ondigitalocean\.com$/i;
88
const COSMOS_DB_REGEX = /\.cosmos\.azure\.com$/i;
99
const DOCUMENT_DB_REGEX = /docdb(-elastic)?\.amazonaws\.com$/i;

0 commit comments

Comments
 (0)