diff options
author | desperateCoder <echotodevnull@gmail.com> | 2020-11-16 14:13:44 +0300 |
---|---|---|
committer | Niedermann IT-Dienstleistungen <stefan-niedermann@users.noreply.github.com> | 2020-11-16 14:24:39 +0300 |
commit | 559681f7c58380d2e4aeeabcfa03a2b8940503c9 (patch) | |
tree | e600c8c03d7c7d2ae666a719a814eda281faf2f8 /app/src/main/java/it/niedermann/nextcloud/deck/util | |
parent | 48aa5edb8df22b94b25c9366dd708893b987a991 (diff) |
#707 fixed test
Diffstat (limited to 'app/src/main/java/it/niedermann/nextcloud/deck/util')
-rw-r--r-- | app/src/main/java/it/niedermann/nextcloud/deck/util/ProjectUtil.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/src/main/java/it/niedermann/nextcloud/deck/util/ProjectUtil.java b/app/src/main/java/it/niedermann/nextcloud/deck/util/ProjectUtil.java index 3161c8920..f43f7d824 100644 --- a/app/src/main/java/it/niedermann/nextcloud/deck/util/ProjectUtil.java +++ b/app/src/main/java/it/niedermann/nextcloud/deck/util/ProjectUtil.java @@ -50,7 +50,7 @@ public class ProjectUtil { throw new IllegalArgumentException("trimmed url is empty"); } // extract important part - String[] splitByPrefix = url.split(".*index\\.php/apps/deck/#/board/"); + String[] splitByPrefix = url.split(".*index\\.php/apps/deck(/#)?/board/"); // split into board- and card part if (splitByPrefix.length < 2) { throw new IllegalArgumentException("This URL doesn't seem to be an URL containing the boardId: \"" + url + "\""); |