From df691347452a7178a2e08f568b8beef847359718 Mon Sep 17 00:00:00 2001 From: Petr Dvorak Date: Mon, 20 Nov 2017 15:17:44 +0100 Subject: [PATCH] Fix #60: Push Credentials Setup - invalid iOS bundle ID Relaxed validation regexp to allow '-' character --- .../controller/web/model/form/UploadIosCredentialsForm.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/powerauth-push-server/src/main/java/io/getlime/push/controller/web/model/form/UploadIosCredentialsForm.java b/powerauth-push-server/src/main/java/io/getlime/push/controller/web/model/form/UploadIosCredentialsForm.java index 4b29edd60..fb0c2cd39 100644 --- a/powerauth-push-server/src/main/java/io/getlime/push/controller/web/model/form/UploadIosCredentialsForm.java +++ b/powerauth-push-server/src/main/java/io/getlime/push/controller/web/model/form/UploadIosCredentialsForm.java @@ -31,7 +31,7 @@ public class UploadIosCredentialsForm { @NotNull @Size(min = 2) - @Pattern(flags = { Pattern.Flag.CASE_INSENSITIVE },regexp = "^[a-z][a-z0-9_]*(\\.[a-z0-9_]+)+[0-9a-z_]$") + @Pattern(flags = { Pattern.Flag.CASE_INSENSITIVE },regexp = "^[a-z][a-z0-9_-]*(\\.[a-z0-9_-]+)+[0-9a-z_-]$") private String bundle; @NotNull