calmapi
calmapi copied to clipboard
Check / Validate MongoDB URI
The regex pattern checks for the following components in a MongoDB URI:
- Protocol (mongodb:// or mongodb+srv://)
- Username and password (optional)
- Hostname(s) (at least one, with optional port)
- Database name
- Optional query parameters
@subhamchbty can you please try without using a package .Just do with regex pattern match, that will be great.
@RajdipM yes, I can do that.
@RajdipM please check, I have updated the code.
@RajdipM Can you please review the PR?