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.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 {