Return-Path: X-Original-To: apmail-couchdb-dev-archive@www.apache.org Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 076BB10F8F for ; Sat, 15 Mar 2014 00:47:00 +0000 (UTC) Received: (qmail 34636 invoked by uid 500); 15 Mar 2014 00:46:59 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 34543 invoked by uid 500); 15 Mar 2014 00:46:58 -0000 Mailing-List: contact dev-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list dev@couchdb.apache.org Received: (qmail 34535 invoked by uid 99); 15 Mar 2014 00:46:58 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 15 Mar 2014 00:46:58 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id 7582C8B8244; Sat, 15 Mar 2014 00:46:58 +0000 (UTC) From: deathbearbrown To: dev@couchdb.apache.org Reply-To: dev@couchdb.apache.org References: In-Reply-To: Subject: [GitHub] couchdb pull request: Improved Query Options Content-Type: text/plain Message-Id: <20140315004658.7582C8B8244@tyr.zones.apache.org> Date: Sat, 15 Mar 2014 00:46:58 +0000 (UTC) Github user deathbearbrown commented on a diff in the pull request: https://github.com/apache/couchdb/pull/180#discussion_r10632272 --- Diff: src/fauxton/app/addons/documents/views.js --- @@ -1090,20 +1117,48 @@ function(app, FauxtonAPI, Components, Documents, Databases, pouchdb, resizeColum this.hasReduce = hasReduce; this.render(); }, + getKeys: function(val){ + var keys = val.value.replace(/\s/g,""); + + var regKeys = keys.match(/(\[.*?\])/g); + if (regKeys) { + keys = regKeys; + } else { + keys = keys.split(','); + } + + keys = _.map(keys, function (key) { return JSON.parse(key); }); --- End diff -- Just a note on this one, if we aren't supporting older than IE8, we can use JSON.parse() @kxepal we originally didn't want to because of a concern around browser support. --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastructure@apache.org or file a JIRA ticket with INFRA. ---