@udecode/plate-combobox
Advanced tools
Comparing version 5.2.1 to 5.2.2
# @udecode/plate-combobox | ||
## 5.2.2 | ||
### Patch Changes | ||
- [#1120](https://github.com/udecode/plate/pull/1120) [`b8f2f97b`](https://github.com/udecode/plate/commit/b8f2f97be28db3f0eb4e8e5222dabe5aa0c2fb3b) Thanks [@dylans](https://github.com/dylans)! - fix mention searchPattern undefined | ||
## 5.2.1 | ||
@@ -4,0 +10,0 @@ |
@@ -62,3 +62,3 @@ import { createStore } from '@udecode/zustood'; | ||
const escapedTrigger = escapeRegExp(trigger); | ||
const triggerRegex = new RegExp(`^${escapedTrigger}(${searchPattern})$`); | ||
const triggerRegex = searchPattern ? new RegExp(`(?:^|\\s)${escapedTrigger}(${searchPattern})$`) : new RegExp(`${escapedTrigger}`); | ||
const noWhiteSpaceRegex = new RegExp(`\\S+`); | ||
@@ -65,0 +65,0 @@ let start = at; |
@@ -71,3 +71,3 @@ 'use strict'; | ||
const escapedTrigger = plateCommon.escapeRegExp(trigger); | ||
const triggerRegex = new RegExp(`^${escapedTrigger}(${searchPattern})$`); | ||
const triggerRegex = searchPattern ? new RegExp(`(?:^|\\s)${escapedTrigger}(${searchPattern})$`) : new RegExp(`${escapedTrigger}`); | ||
const noWhiteSpaceRegex = new RegExp(`\\S+`); | ||
@@ -74,0 +74,0 @@ let start = at; |
{ | ||
"name": "@udecode/plate-combobox", | ||
"version": "5.2.1", | ||
"version": "5.2.2", | ||
"description": "Combobox UI for Plate", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
122794