Skip to content

TagSpaces is an offline, open source, document manager with tagging support

fix: allow : in the file names by renaming

Ilian Sapundshiev28579b8858d5
diff --git a/app/components/dialogs/RenameEntryDialog.tsx b/app/components/dialogs/RenameEntryDialog.tsx
index 7535ab89f..2d8db3433 100644
--- a/app/components/dialogs/RenameEntryDialog.tsx
+++ b/app/components/dialogs/RenameEntryDialog.tsx
@@ -120,7 +120,7 @@ const RenameEntryDialog = (props: Props) => {
const handleValidation = () => {
const initValid = disableConfirmButton.current;
if (name.current.length > 0) {
- const rg1 = /^[^#\\/:*?"<>|]+$/; // forbidden characters # \ / : * ? " < > |
+ const rg1 = /^[^#\\/*?"<>|]+$/; // forbidden characters # \ / * ? " < > |
if (isFile) {
// https://stackoverflow.com/a/11101624/2285631
const rg2 = /^\./; // cannot start with dot (.)