Skip to content

Instantly share code, notes, and snippets.

@alexrold
Forked from Klerith/MongoID-regexp.ts
Created March 31, 2022 19:31
Show Gist options
  • Select an option

  • Save alexrold/ebbc6ac77fa6afea75a9eb1b03d808b7 to your computer and use it in GitHub Desktop.

Select an option

Save alexrold/ebbc6ac77fa6afea75a9eb1b03d808b7 to your computer and use it in GitHub Desktop.
MongoID - RegExp
const checkMongoIDRegExp = new RegExp("^[0-9a-fA-F]{24}$");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment