Open
Description
The logic checks that before the @frappe.whitelist
string are there an equal number of single/double quotes, or comment blocks (opening and closing) or not.
This fails when a comment might have an '
or "
but no closing tag. (for example: the comment could be like:
Need to check the customer's ID
This would cause the API to be regarded as being inside a comment.
Possible solution: do not try to guess if the code is inside a comment or not - maybe have a flag that can tell the users that the API might be commented out, but still show the API on the UI. Or only test for triple strings only, and leave the single/double quotes from the logic.
Reference:
Metadata
Metadata
Assignees
Labels
No labels