deno icon indicating copy to clipboard operation
deno copied to clipboard

fix: resolve shebang parse error in deno doc --test

Open MujahedSafaa opened this issue 1 year ago • 0 comments

This PR addresses the issue reported in https://github.com/denoland/deno/issues/26018.

Issue: Running deno doc --test on a file that contains a shebang results in a parse error.

Solution: The bug has been fixed by updating the regex to ensure that the shebang characters (#!) are no longer excluded. This allows the shebang to be retained and parsed correctly. @bartlomieju @dsherret

MujahedSafaa avatar Oct 09 '24 14:10 MujahedSafaa