diff options
author | Stefan Niedermann <info@niedermann.it> | 2020-11-24 12:58:59 +0300 |
---|---|---|
committer | Niedermann IT-Dienstleistungen <stefan-niedermann@users.noreply.github.com> | 2020-11-24 14:06:51 +0300 |
commit | 54d77df85f59ad9304fbd434db436ed3bdae6884 (patch) | |
tree | 9109d7cf73d11b3d54bff6279c936564b8881bb5 /app/src/main/java/it/niedermann/nextcloud/deck/util | |
parent | a1c01e15401d047860d95217d3a874972208d88a (diff) |
Support parsing links without index.php segment
Signed-off-by: Stefan Niedermann <info@niedermann.it>
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 f43f7d824..dada022da 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 + "\""); |