patch(/code *
): add better option validation for line / entity queries
#51
Labels
Milestone
/code *
): add better option validation for line / entity queries
#51
Currently, it is theoretically possible to attempt selecting a range below 0.
/code entity
around
should be greater than 0/code lines
start
andend
should be greater than 1This is currently the only check in place, checking if
startLine
exceeds the total line count of the file.docs-bot/src/commands/code.ts
Lines 136 to 145 in 9bafefb
#50 could easily be thrown out and have an error returned instead, for which an
onError
method could be added.The text was updated successfully, but these errors were encountered: