From dc38d35986828ad4d868829a51785c99f28a9123 Mon Sep 17 00:00:00 2001 From: Michael Peter Christen Date: Tue, 22 Oct 2013 12:46:10 +0200 Subject: [PATCH] added matching in url field in Table_API_p search --- htroot/Table_API_p.html | 2 +- htroot/Table_API_p.java | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/htroot/Table_API_p.html b/htroot/Table_API_p.html index b2dfa8364..6a5dd9cca 100644 --- a/htroot/Table_API_p.html +++ b/htroot/Table_API_p.html @@ -46,7 +46,7 @@ To see a list of all APIs, please visit the
diff --git a/htroot/Table_API_p.java b/htroot/Table_API_p.java index 7b0db6783..7eb114925 100644 --- a/htroot/Table_API_p.java +++ b/htroot/Table_API_p.java @@ -245,7 +245,7 @@ public class Table_API_p { boolean dark = true; boolean scheduledactions = false; int c = 0; - String type, comment; + String type, comment, url; // first prepare a list while (mapIterator.hasNext()) { r = mapIterator.next(); @@ -257,7 +257,8 @@ public class Table_API_p { continue; } comment = UTF8.String(r.get(WorkTables.TABLE_API_COL_COMMENT)); - if (!query.matcher(comment).matches()) { + url = UTF8.String(r.get(WorkTables.TABLE_API_COL_URL)); + if (!(query.matcher(comment).matches() || query.matcher(url).matches())) { continue; } if (c >= startRecord) {