added matching in url field in Table_API_p search

pull/1/head
Michael Peter Christen 11 years ago
parent 691d7e70fa
commit dc38d35986

@ -245,7 +245,7 @@ public class Table_API_p {
boolean dark = true; boolean dark = true;
boolean scheduledactions = false; boolean scheduledactions = false;
int c = 0; int c = 0;
String type, comment; String type, comment, url;
// first prepare a list // first prepare a list
while (mapIterator.hasNext()) { while (mapIterator.hasNext()) {
r = mapIterator.next(); r = mapIterator.next();
@ -257,7 +257,8 @@ public class Table_API_p {
continue; continue;
} }
comment = UTF8.String(r.get(WorkTables.TABLE_API_COL_COMMENT)); 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; continue;
} }
if (c >= startRecord) { if (c >= startRecord) {

Loading…
Cancel
Save