Skip to content

Commit

Permalink
Update terminal2.html
Browse files Browse the repository at this point in the history
Allow certain special characters when going to a certain URL with cd command.

Signed-off-by: Billy Wilcosky <[email protected]>
  • Loading branch information
zerosonesfun authored May 19, 2024
1 parent f796fce commit 521ee73
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions terminal2.html
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@

// Utility Functions
function isPlainText(text) {
return /^[a-zA-Z0-9\s]+$/.test(text);
return /^[a-zA-Z0-9\/\.\-_]+$/.test(text);
}

function displayCommandsWithDelay(commands) {
Expand All @@ -223,9 +223,7 @@
}

function resetTerminal() {
terminalOutput.textContent = '';
terminalInput.value = '';
typeResponse('Welcome to terminal billy! Type "help" to see available commands. This is version 2.0.0. To contribute look for zerosonesfun/terminal-billy on GitHub.\n');
setTimeout(() => location.reload(), 2000);
}

// Initial welcome message
Expand Down

0 comments on commit 521ee73

Please sign in to comment.