aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--OpenKeychain/src/main/java/org/sufficientlysecure/keychain/linked/LinkedTokenResource.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/linked/LinkedTokenResource.java b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/linked/LinkedTokenResource.java
index b5a3a6be6..61e275166 100644
--- a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/linked/LinkedTokenResource.java
+++ b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/linked/LinkedTokenResource.java
@@ -42,7 +42,7 @@ public abstract class LinkedTokenResource extends LinkedResource {
protected final HashMap<String,String> mParams;
public static Pattern magicPattern =
- Pattern.compile("\\[Verifying my (?:Open)?PGP key: openpgp4fpr:([a-zA-Z0-9]+)]");
+ Pattern.compile("\\[Verifying my (?:Open|)?PGP key(?::|) openpgp4fpr:([a-zA-Z0-9]+)]");
protected LinkedTokenResource(Set<String> flags, HashMap<String, String> params, URI uri) {
mFlags = flags;
@@ -109,8 +109,7 @@ public abstract class LinkedTokenResource extends LinkedResource {
}
protected static LinkedTokenResource findResourceType (Set<String> flags,
- HashMap<String,String> params,
- URI subUri) {
+ HashMap<String,String> params, URI subUri) {
LinkedTokenResource res;