UNPKG

@qelos/auth

Version:

Express Passport authentication service

9 lines (8 loc) 265 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.isObjectId = void 0; const checkForHexRegExp = new RegExp('^[0-9a-fA-F]{24}$'); function isObjectId(id) { return checkForHexRegExp.test(id); } exports.isObjectId = isObjectId;