-
-
Notifications
You must be signed in to change notification settings - Fork 162
Closed
Description
Here the regexp returns null
for specific code comments, which results in an Uncaught TypeError: null is not iterable
error:
// hello → works
//hello → errors if there's no space after //
// 你好 → errors
// å → errors
codehike/packages/mdx/src/plugin/annotations.ts
Lines 62 to 65 in 60e0c20
const commentRegex = /\/\/\s+(\w+)(\S*)\s*(.*)/ | |
const [, key, focusString, data] = commentRegex.exec( | |
comment | |
) |
Metadata
Metadata
Assignees
Labels
No labels