-
Notifications
You must be signed in to change notification settings - Fork 17
Open
Milestone
Description
Currently, our RegExps are a bit loose to allow for slight inaccuracies in the core documentation, however, this leads to things being matches that should not be matched.
For example, as shown below, CMake.js
treated as a property (https://nodejs-api-docs-tooling.vercel.app/n-api.html#cmakejs):
This is because our RegExp (currently /^(?:Class property: +)?`?[A-Z]\w+(?:\.[A-Z]\w+)*(?:(\[\w+\.\w+\])|\.(\w+))`?$/i
) does not require the "Class property:" designation, nor the `backticks`
wrapping. We should fix any/all inaccuracies in core, and make these RegExps stricter.
flakey5
Metadata
Metadata
Assignees
Labels
No labels