@ckeditor/ckeditor5-typing 48.4.0 → 48.5.0-alpha.0

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.js CHANGED
@@ -1131,7 +1131,8 @@ var TextWatcher = class extends TextWatcherBase {
1131
1131
  _evaluateTextBeforeSelection(suffix, data = {}) {
1132
1132
  const model = this.model;
1133
1133
  const selection = model.document.selection;
1134
- const { text, range } = getLastTextLine(model.createRange(model.createPositionAt(selection.focus.parent, 0), selection.focus), model);
1134
+ const rangeBeforeSelection = model.createRange(model.createPositionAt(selection.focus.parent, 0), selection.focus);
1135
+ const { text, range } = getLastTextLine(rangeBeforeSelection, model);
1135
1136
  const testResult = this.testCallback(text);
1136
1137
  if (!testResult && this.hasMatch) this.fire("unmatched");
1137
1138
  this._hasMatch = !!testResult;