From 1f407932df8a2ebbcdb313018aa2d5a3ed9aede2 Mon Sep 17 00:00:00 2001 From: mendhak Date: Sun, 12 Nov 2023 18:38:22 +0000 Subject: [PATCH] Undoing overzealous filename character checking. T Issue #1105 --- .../gpslogger/ui/fragments/display/GenericViewFragment.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gpslogger/src/main/java/com/mendhak/gpslogger/ui/fragments/display/GenericViewFragment.java b/gpslogger/src/main/java/com/mendhak/gpslogger/ui/fragments/display/GenericViewFragment.java index 9c2dbb272..259477a55 100644 --- a/gpslogger/src/main/java/com/mendhak/gpslogger/ui/fragments/display/GenericViewFragment.java +++ b/gpslogger/src/main/java/com/mendhak/gpslogger/ui/fragments/display/GenericViewFragment.java @@ -120,7 +120,7 @@ public void requestToggleLogging() { formElements.add(Input.plain(PreferenceNames.CUSTOM_FILE_NAME) .required() // Don't allow *, &, %, / or \ in the file name. - .validatePattern("^[^*&%/\\\\]+$", "Invalid file name") + .validatePattern("^[^*/\\\\]+$", "Invalid file name") .suggest(new ArrayList<>(cachedList)) .text(preferenceHelper.getCustomFileName()) );