mirror of
https://github.com/nodejs/node.git
synced 2026-11-09 15:11:11 -05:00
When inspecting errors, node_modules are highlighted with an underscore. So far namespaced modules only highlighted the namespace but not the rest of the module name. This is fixed by matching the full name. As drive-by it improves the performance slightly by removing the regular expression in favor of indexOf to identify the right spot. PR-URL: https://github.com/nodejs/node/pull/59446 Reviewed-By: Jordan Harband <ljharb@gmail.com>