Return-Path: Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: (qmail 33746 invoked from network); 21 Nov 2009 11:33:04 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 21 Nov 2009 11:33:04 -0000 Received: (qmail 1161 invoked by uid 500); 21 Nov 2009 11:33:03 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 1104 invoked by uid 500); 21 Nov 2009 11:33:03 -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 1094 invoked by uid 99); 21 Nov 2009 11:33:03 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 21 Nov 2009 11:33:03 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 21 Nov 2009 11:33:00 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id BE7B5234C495 for ; Sat, 21 Nov 2009 03:32:39 -0800 (PST) Message-ID: <248807207.1258803159778.JavaMail.jira@brutus> Date: Sat, 21 Nov 2009 11:32:39 +0000 (UTC) From: "Jan Lehnardt (JIRA)" To: dev@couchdb.apache.org Subject: [jira] Closed: (COUCHDB-573) Regex capture problem in emit functions In-Reply-To: <242508195.1258699059656.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/COUCHDB-573?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jan Lehnardt closed COUCHDB-573. -------------------------------- Resolution: Invalid > Regex capture problem in emit functions > --------------------------------------- > > Key: COUCHDB-573 > URL: https://issues.apache.org/jira/browse/COUCHDB-573 > Project: CouchDB > Issue Type: Bug > Affects Versions: 0.11 > Environment: Linux > Reporter: Eric Desgranges > Priority: Trivial > Fix For: 0.11 > > > The capture variables $0, $1, $2... don't get instantiated in regex expressions placed in emit functions. > Example: > function(doc) { if (doc.EntityType != null) { emit(doc.ID.Value + '.' + doc.EntityType, { Type: doc.EntityType.replace(/[A-Z]/g, ' $0'), .... > EntityType: TestTwo > Returns: > Type: " $0est $0wo" > Instead of: > Type: " Test Two" -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.