lib/condenser/processors/node_modules/regexp-tree/dist/generator/index.js in condenser-0.0.5 vs lib/condenser/processors/node_modules/regexp-tree/dist/generator/index.js in condenser-0.0.7

- old
+ new

@@ -30,11 +30,11 @@ var expression = gen(node.expression); if (node.capturing) { // A named group. if (node.name) { - return '(?<' + node.name + '>' + expression + ')'; + return '(?<' + (node.nameRaw || node.name) + '>' + expression + ')'; } return '(' + expression + ')'; } @@ -43,10 +43,10 @@ Backreference: function Backreference(node) { switch (node.kind) { case 'number': return '\\' + node.reference; case 'name': - return '\\k<' + node.reference + '>'; + return '\\k<' + (node.referenceRaw || node.reference) + '>'; default: throw new TypeError('Unknown Backreference kind: ' + node.kind); } }, Assertion: function Assertion(node) { \ No newline at end of file