node/lib/internal/source_map
Alan Agius e6018e2864
lib: don't match sourceMappingURL in strings
Prior to this change `sourceMappingURL` in string where being matched
by the RegExp which caused sourcemaps not be loaded when using the
`--enable-source-maps` flag. This commit changes the RegExp to match
the last occurrence.

Fixes: https://github.com/nodejs/node/issues/44654
PR-URL: https://github.com/nodejs/node/pull/44658
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
2022-09-26 00:11:18 +08:00
..
prepare_stack_trace.js lib: codify findSourceMap return value when not found 2022-08-27 23:13:53 +00:00
source_map_cache.js lib: don't match sourceMappingURL in strings 2022-09-26 00:11:18 +08:00
source_map.js lib: refactor to use validateObject() validator 2022-02-06 13:09:08 +00:00