Closed shuding closed 2 years ago
Here the regexp returns null for specific code comments, which results in an Uncaught TypeError: null is not iterable error:
null
Uncaught TypeError: null is not iterable
// hello → works //hello → errors if there's no space after // // 你好 → errors // å → errors
https://github.com/code-hike/codehike/blob/60e0c2099ac35cee96415c49fd893db1ccd0b3e3/packages/mdx/src/plugin/annotations.ts#L62-L65
:rocket: Issue was released in v0.3.0 :rocket:
v0.3.0
Here the regexp returns
null
for specific code comments, which results in anUncaught TypeError: null is not iterable
error:https://github.com/code-hike/codehike/blob/60e0c2099ac35cee96415c49fd893db1ccd0b3e3/packages/mdx/src/plugin/annotations.ts#L62-L65