basic-parser
Advanced tools
Comparing version 1.0.3 to 1.1.0
@@ -103,6 +103,13 @@ var _extends = Object.assign || function (target) { | ||
var isMatchEscaped = beforeChunk[beforeChunk.length - 1] === '\\'; | ||
if (beforeChunk) { | ||
contexts.push(beforeChunk); | ||
contexts.push(isMatchEscaped ? beforeChunk.slice(0, -1) : beforeChunk); | ||
} | ||
if (isMatchEscaped) { | ||
contexts.push(regExpResult.input[regExpResult.index]); | ||
continue; | ||
} | ||
renderers.some(function (renderer) { | ||
@@ -109,0 +116,0 @@ var isInSomeRendererGroup = renderer.groupIndexes.some(function (groupIndex) { |
@@ -63,6 +63,13 @@ // @flow | ||
const isMatchEscaped = beforeChunk[beforeChunk.length - 1] === '\\' | ||
if (beforeChunk) { | ||
contexts.push(beforeChunk) | ||
contexts.push(isMatchEscaped ? beforeChunk.slice(0, -1) : beforeChunk) | ||
} | ||
if (isMatchEscaped) { | ||
contexts.push(regExpResult.input[regExpResult.index]) | ||
continue | ||
} | ||
renderers.some(renderer => { | ||
@@ -69,0 +76,0 @@ const isInSomeRendererGroup = renderer.groupIndexes.some( |
@@ -109,6 +109,13 @@ (function (global, factory) { | ||
var isMatchEscaped = beforeChunk[beforeChunk.length - 1] === '\\'; | ||
if (beforeChunk) { | ||
contexts.push(beforeChunk); | ||
contexts.push(isMatchEscaped ? beforeChunk.slice(0, -1) : beforeChunk); | ||
} | ||
if (isMatchEscaped) { | ||
contexts.push(regExpResult.input[regExpResult.index]); | ||
continue; | ||
} | ||
renderers.some(function (renderer) { | ||
@@ -115,0 +122,0 @@ var isInSomeRendererGroup = renderer.groupIndexes.some(function (groupIndex) { |
@@ -63,6 +63,13 @@ // @flow | ||
const isMatchEscaped = beforeChunk[beforeChunk.length - 1] === '\\' | ||
if (beforeChunk) { | ||
contexts.push(beforeChunk) | ||
contexts.push(isMatchEscaped ? beforeChunk.slice(0, -1) : beforeChunk) | ||
} | ||
if (isMatchEscaped) { | ||
contexts.push(regExpResult.input[regExpResult.index]) | ||
continue | ||
} | ||
renderers.some(renderer => { | ||
@@ -69,0 +76,0 @@ const isInSomeRendererGroup = renderer.groupIndexes.some( |
{ | ||
"name": "basic-parser", | ||
"version": "1.0.3", | ||
"version": "1.1.0", | ||
"description": "An extremely basic token-based parser", | ||
@@ -5,0 +5,0 @@ "repository": "https://github.com/amsul/basic-parser", |
30852
869