clarity-pattern-parser 10.1.1 → 10.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.browser.js +1 -1
- package/dist/index.browser.js.map +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/patterns/Context.ts +4 -4
package/dist/index.esm.js
CHANGED
|
@@ -2558,7 +2558,7 @@ class Context {
|
|
|
2558
2558
|
return this._pattern.test(text, record);
|
|
2559
2559
|
}
|
|
2560
2560
|
clone(name = this._name) {
|
|
2561
|
-
const clone = new Context(name, this._pattern, this._children.slice(-1));
|
|
2561
|
+
const clone = new Context(name, this._pattern, this._children.slice(0, -1));
|
|
2562
2562
|
return clone;
|
|
2563
2563
|
}
|
|
2564
2564
|
getTokens() {
|