Skip to content
This repository was archived by the owner on May 31, 2022. It is now read-only.

Commit e1acb83

Browse files
committed
add isURI fn
1 parent 2865ca5 commit e1acb83

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

model.js

+4
Original file line numberDiff line numberDiff line change
@@ -800,6 +800,10 @@ Connection.getFieldNames = function(authentication) {
800800
return AUTHENTICATION_TO_FIELD_NAMES[authentication];
801801
};
802802

803+
Connection.isURI = function(str) {
804+
return str.indexOf('mongodb://') > -1;
805+
};
806+
803807
Connection.AUTHENTICATION_VALUES = AUTHENTICATION_VALUES;
804808
Connection.AUTHENTICATION_DEFAULT = AUTHENTICATION_DEFAULT;
805809
Connection.SSL_VALUES = SSL_VALUES;

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"author": "Lucas Hrabovsky <lucas@mongodb.com>",
55
"bugs": "https://github.com/mongodb-js/mongodb-connection-model/issues",
66
"homepage": "https://github.com/mongodb-js/mongodb-connection-model",
7-
"version": "3.0.6",
7+
"version": "3.0.7",
88
"repository": {
99
"type": "git",
1010
"url": "https://github.com/mongodb-js/mongodb-connection-model.git"

0 commit comments

Comments
 (0)