diff --git a/lib/internal/util/inspect.js b/lib/internal/util/inspect.js index 38665d1bc2a515..dd8a863a81083c 100644 --- a/lib/internal/util/inspect.js +++ b/lib/internal/util/inspect.js @@ -118,7 +118,7 @@ const { NativeModule } = require('internal/bootstrap/loaders'); let hexSlice; const builtInObjects = new Set( - ObjectGetOwnPropertyNames(global).filter((e) => /^([A-Z][a-z]+)+$/.test(e)) + ObjectGetOwnPropertyNames(global).filter((e) => /^[A-Z][a-zA-Z0-9]+$/.test(e)) ); // These options must stay in sync with `getUserOptions`. So if any option will