{"issue":{"created_at":"2011-11-18T09:14:48Z","state":"closed","updated_at":"2011-11-25T14:58:18Z","user":{"gravatar_id":"0f69b3afdb246854bfddace8f259d1d0","id":1104994,"url":"https://api.github.com/users/ovidiusoft","login":"ovidiusoft","avatar_url":"https://secure.gravatar.com/avatar/0f69b3afdb246854bfddace8f259d1d0?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"comments":8,"body":"The following patch allows for filtering addresses and labels by searching for the typed string anywhere, not just at the beginning. Trivial to test, and it helps a little with usability:\r\n\r\n--- src/qt/transactionfilterproxy.cpp.old\t2011-11-18 10:56:12.764263766 +0200\r\n+++ src/qt/transactionfilterproxy.cpp\t2011-11-18 10:59:07.064263768 +0200\r\n@@ -35,7 +35,8 @@\r\n         return false;\r\n     if(datetime < dateFrom || datetime > dateTo)\r\n         return false;\r\n-    if(!address.startsWith(addrPrefix) && !label.startsWith(addrPrefix))\r\n+    //if(!address.startsWith(addrPrefix) && !label.startsWith(addrPrefix))\r\n+    if (!address.contains(addrPrefix, Qt::CaseInsensitive) && !label.contains(addrPrefix, Qt::CaseInsensitive))\r\n         return false;\r\n     if(amount < minAmount)\r\n         return false;\r\n","assignee":null,"id":2278237,"number":641,"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"labels":[],"title":"[patch] address/label search tweak","closed_at":"2011-11-24T20:15:42Z","html_url":"https://github.com/bitcoin/bitcoin/issues/641","url":"https://api.github.com/repos/bitcoin/bitcoin/issues/641","milestone":null},"action":"created","comment":{"created_at":"2011-11-25T14:58:18Z","updated_at":"2011-11-25T14:58:18Z","user":{"gravatar_id":"0f69b3afdb246854bfddace8f259d1d0","id":1104994,"url":"https://api.github.com/users/ovidiusoft","login":"ovidiusoft","avatar_url":"https://secure.gravatar.com/avatar/0f69b3afdb246854bfddace8f259d1d0?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"body":"Super powers! :)\n\nOn Fri, Nov 25, 2011 at 4:05 PM, Luke-Jr\n<reply@reply.github.com>\nwrote:\n> ... ok, that's spooky: how do you know what my Eligius earnings label is named? O.O\n>\n> ---\n> Reply to this email directly or view it on GitHub:\n> https://github.com/bitcoin/bitcoin/issues/641#issuecomment-2874777\n>","id":2875218,"url":"https://api.github.com/repos/bitcoin/bitcoin/issues/comments/2875218"}}