diff --git a/src/com/fsck/k9/view/AttachmentView.java b/src/com/fsck/k9/view/AttachmentView.java index 8621aa7a9..bb736f6cc 100644 --- a/src/com/fsck/k9/view/AttachmentView.java +++ b/src/com/fsck/k9/view/AttachmentView.java @@ -40,11 +40,19 @@ import com.fsck.k9.provider.AttachmentProvider; public class AttachmentView extends FrameLayout { /** - * Regular expression that represents characters that aren't allowed - * to be used in file names saved using K-9 + * Regular expression that represents characters we won't allow in file names. + * + *

+ * Allowed are: + *

*/ - private static final String INVALID_CHARACTERS = "[^\\d\\s\\w!" + - "#\\$%&'\\(\\)\\-@\\^_`\\{\\}~.,]+"; + private static final String INVALID_CHARACTERS = "[^\\w !#$%&'()\\-@\\^`{}~.,]+"; /** * Invalid characters in a file name are replaced by this character.