nbgrader
nbgrader copied to clipboard
Assignment names breaking regex
This extends the list of banned assignment-name characters beyond +
to include a bunch that break the path regex code.
closes #1738
Thanks @perllaghu.
I wonder if there could not be a way to manage special characters when running the regex match. Something like re.escape
, to avoid constraining the assignment name.
On my side there is some confusion in this PR, I see some modifications already in the branch main
(e.g. zero point validation).
Thanks @perllaghu.
I wonder if there could not be a way to manage special characters when running the regex match. Something like
re.escape
, to avoid constraining the assignment name.
This is essentially an extension of the existing routine - which prevent +
in assignment names.
On my side there is some confusion in this PR, I see some modifications already in the branch
main
(e.g. zero point validation).
I'll rebase on master :)
Just a heads up, you can review notebook changes like this using GitNotebooks.
e.g. this pull request https://gitnotebooks.com/jupyter/nbgrader/pull/1768
It's free for public repos, so might be helpful for y'all.
The last commit https://github.com/jupyter/nbgrader/pull/1768/commits/88915ab776de97b52d754d479709fbc36f84fa7b is very confusing: it includes changes from https://github.com/jupyter/nbgrader/commit/67069391deaf4ac390952e633926631b5271a328 (in main
), reverts 2 previous commits in this pull request and maybe also some unrelated changes (I can't tell at this point).
Please do an interactive rebase, drop the reverted commits, squash corrections into previous commits and overall make sure that this pull request can be properly reviewed.
This is essentially an extension of the existing routine - which prevent
+
in assignment names.
Agree, let's move forward with this PR and open an issue to allow these character in future development. @perllaghu can you clean this PR please ?
The sane move now will be to drop this & redo the work on a fresh master