-
Notifications
You must be signed in to change notification settings - Fork 761
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot delete contract files with special characters in filename #3979
Comments
Yeah it looks like you're right about it being the &. It's eventually reaching this filename check and failing to match this regex: bitburner/src/Terminal/DirectoryHelpers.ts Lines 38 to 45 in ba5b0be
Edit: I just noticed you had already tracked down that it was this particular function... |
Have run into a new problem after the latest update, possibly related: I now can't directly run a file with an apostrophe in it without wrapping it in quotes.
|
When attempting to delete a contract I'd resigned to the "too hard basket" the
rm
command failed, saying the file did not exist.Output:
rm
I think this is happening because the apostrophe and ampersand characters are failing
isValidFilename
validation in the Terminal/DirectoryHelpers, where the regex only "Allows alphanumerics, hyphens, underscores, and percentage signs".I'm of two minds about this could be fixed.
\'\&
symbols could work, but there could be a side-effect of validating some strings that shouldn't be considered valid, in some part of the system I don't yet understand.The text was updated successfully, but these errors were encountered: