calmapi icon indicating copy to clipboard operation
calmapi copied to clipboard

Check / Validate MongoDB URI

Open subhamchbty opened this issue 1 year ago • 4 comments

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 avatar Jun 22 '23 06:06 subhamchbty

@subhamchbty can you please try without using a package .Just do with regex pattern match, that will be great.

RajdipM avatar Jan 26 '24 05:01 RajdipM

@RajdipM yes, I can do that.

subhamchbty avatar Jan 26 '24 05:01 subhamchbty

@RajdipM please check, I have updated the code.

subhamchbty avatar Mar 28 '24 06:03 subhamchbty

@RajdipM Can you please review the PR?

sunilksamanta avatar Jul 09 '24 08:07 sunilksamanta