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

Commit

Permalink
add isURI fn
Browse files Browse the repository at this point in the history
  • Loading branch information
WaleyChen committed Nov 13, 2015
1 parent 2865ca5 commit e1acb83
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions model.js
Original file line number Diff line number Diff line change
Expand Up @@ -800,6 +800,10 @@ Connection.getFieldNames = function(authentication) {
return AUTHENTICATION_TO_FIELD_NAMES[authentication];
};

Connection.isURI = function(str) {
return str.indexOf('mongodb://') > -1;
};

Connection.AUTHENTICATION_VALUES = AUTHENTICATION_VALUES;
Connection.AUTHENTICATION_DEFAULT = AUTHENTICATION_DEFAULT;
Connection.SSL_VALUES = SSL_VALUES;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"author": "Lucas Hrabovsky <lucas@mongodb.com>",
"bugs": "https://github.com/mongodb-js/mongodb-connection-model/issues",
"homepage": "https://github.com/mongodb-js/mongodb-connection-model",
"version": "3.0.6",
"version": "3.0.7",
"repository": {
"type": "git",
"url": "https://github.com/mongodb-js/mongodb-connection-model.git"
Expand Down

0 comments on commit e1acb83

Please sign in to comment.