You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by da...@apache.org on 2019/12/18 17:59:55 UTC
[couchdb-escodegen] 01/02: Bug generating RegExp code
This is an automated email from the ASF dual-hosted git repository.
davisp pushed a commit to reference refs/pull/307/head
in repository https://gitbox.apache.org/repos/asf/couchdb-escodegen.git
commit 960138e334432951d761659c5fe9ccdaa136dbf1
Author: ffarzat <fa...@gmail.com>
AuthorDate: Sun May 15 23:00:05 2016 -0300
Bug generating RegExp code
---
escodegen.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/escodegen.js b/escodegen.js
index 0360521..e9555fd 100644
--- a/escodegen.js
+++ b/escodegen.js
@@ -2326,7 +2326,7 @@
return expr.value ? 'true' : 'false';
}
- return generateRegExp(expr.value);
+ return generateRegExp(expr.raw);
},
GeneratorExpression: function (expr, precedence, flags) {