jsuites 6.3.3 → 6.3.5

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.
Files changed (2) hide show
  1. package/dist/jsuites.js +3 -3
  2. package/package.json +1 -1
package/dist/jsuites.js CHANGED
@@ -10784,7 +10784,7 @@ if (! Contextmenu && "function" === 'function') {
10784
10784
  if (control.caret) {
10785
10785
  let index = control.caret.index;
10786
10786
  let position = control.caret.position;
10787
- let value = control.values[index] ?? '';
10787
+ let value = String(control.values[index] ?? '');
10788
10788
  // Re-apply the caret to the original position
10789
10789
  control.values[index] = value.substring(0, position) + hiddenCaret + value.substring(position);
10790
10790
  }
@@ -17304,7 +17304,7 @@ function Dropdown() {
17304
17304
  ajax(o);
17305
17305
  } else {
17306
17306
  // Search terms
17307
- str = new RegExp(str, 'gi');
17307
+ str = new RegExp(str.replace(/[.*+?^${}()|[\]\\]/g, '\\$&'), 'gi');
17308
17308
 
17309
17309
  // Reset search
17310
17310
  var results = [];
@@ -23443,7 +23443,7 @@ var jSuites = {
23443
23443
  ...dictionary,
23444
23444
  ...helpers,
23445
23445
  /** Current version */
23446
- version: '6.3.3',
23446
+ version: '6.3.5',
23447
23447
  /** Bind new extensions to Jsuites */
23448
23448
  setExtensions: function(o) {
23449
23449
  if (typeof(o) == 'object') {
package/package.json CHANGED
@@ -26,7 +26,7 @@
26
26
  },
27
27
  "main": "dist/jsuites.js",
28
28
  "types": "dist/jsuites.d.ts",
29
- "version": "6.3.3",
29
+ "version": "6.3.5",
30
30
  "bugs": "https://github.com/jsuites/jsuites/issues",
31
31
  "homepage": "https://github.com/jsuites/jsuites",
32
32
  "docs": "https://jsuites.net",