couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kxepal <>
Subject [GitHub] couchdb pull request: Improved Query Options
Date Mon, 17 Mar 2014 15:00:16 GMT
Github user kxepal commented on a diff in the pull request:
    --- Diff: src/fauxton/app/addons/documents/views.js ---
    @@ -1090,20 +1117,48 @@ function(app, FauxtonAPI, Components, Documents, Databases, pouchdb,
           this.hasReduce = hasReduce;
    +    getKeys: function(val){
    +      var keys = val.value.replace(/\s/g,"");
    +      var regKeys = keys.match(/(\[.*?\])/g); 
    --- End diff --
    @garrensmith the idea is ok, but if I just copy my `keys` value to Fauxton without any
braces striping it'll fail to search anything. 
    And even if so, here is another test case:
    > "[[1,2,3]],[[4,5,6]]".match(/(\[.*?\])/g)
    > ["[[1,2,3]", "[[4,5,6]"]

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 or file a JIRA ticket
with INFRA.

View raw message