Skip to content

Instantly share code, notes, and snippets.

@ajcarrillo
Forked from Klerith/MongoID-regexp.ts
Created September 25, 2022 03:23
Show Gist options
  • Save ajcarrillo/779b3880bfe2ad69e78534b60e643c87 to your computer and use it in GitHub Desktop.
Save ajcarrillo/779b3880bfe2ad69e78534b60e643c87 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