clarity-pattern-parser 11.0.10 → 11.0.12
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/Regex.ts +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -731,7 +731,7 @@ class Regex {
|
|
|
731
731
|
}
|
|
732
732
|
tryToParse(cursor) {
|
|
733
733
|
const result = this._regex.exec(this._substring);
|
|
734
|
-
if (result != null && result.index === 0) {
|
|
734
|
+
if (result != null && result[0].length > 0 && result.index === 0) {
|
|
735
735
|
this.processResult(cursor, result);
|
|
736
736
|
}
|
|
737
737
|
else {
|