@refinitiv-ui/elements 6.14.1 → 6.14.2
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/CHANGELOG.md +4 -0
- package/lib/combo-box/helpers/filter.js +2 -1
- package/lib/tree/helpers/filter.js +2 -1
- package/lib/version.js +1 -1
- package/package.json +3 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,10 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [6.14.2](https://github.com/Refinitiv/refinitiv-ui/compare/@refinitiv-ui/elements@6.14.1...@refinitiv-ui/elements@6.14.2) (2023-11-06)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @refinitiv-ui/elements
|
|
9
|
+
|
|
6
10
|
## [6.14.1](https://github.com/Refinitiv/refinitiv-ui/compare/@refinitiv-ui/elements@6.14.0...@refinitiv-ui/elements@6.14.1) (2023-10-31)
|
|
7
11
|
|
|
8
12
|
### Bug Fixes
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import escapeStringRegexp from 'escape-string-regexp';
|
|
1
2
|
/**
|
|
2
3
|
* Default filter used by combo box
|
|
3
4
|
* @param el ComboBox instance to filter
|
|
@@ -14,7 +15,7 @@ export const defaultFilter = (el) => {
|
|
|
14
15
|
const getRegularExpressionOfQuery = () => {
|
|
15
16
|
if (el.query !== query || !queryRegExp) {
|
|
16
17
|
query = el.query || '';
|
|
17
|
-
queryRegExp = new RegExp(query
|
|
18
|
+
queryRegExp = new RegExp(escapeStringRegexp(query), 'i');
|
|
18
19
|
}
|
|
19
20
|
return queryRegExp;
|
|
20
21
|
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import escapeStringRegexp from 'escape-string-regexp';
|
|
1
2
|
/**
|
|
2
3
|
* Default filter used by tree
|
|
3
4
|
* @param el Tree instance to filter
|
|
@@ -14,7 +15,7 @@ export const defaultFilter = (el) => {
|
|
|
14
15
|
const getRegularExpressionOfQuery = () => {
|
|
15
16
|
if (el.query !== query || !queryRegExp) {
|
|
16
17
|
query = el.query || '';
|
|
17
|
-
queryRegExp = new RegExp(query
|
|
18
|
+
queryRegExp = new RegExp(escapeStringRegexp(query), 'i');
|
|
18
19
|
}
|
|
19
20
|
return queryRegExp;
|
|
20
21
|
};
|
package/lib/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '6.14.
|
|
1
|
+
export const VERSION = '6.14.2';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@refinitiv-ui/elements",
|
|
3
|
-
"version": "6.14.
|
|
3
|
+
"version": "6.14.2",
|
|
4
4
|
"description": "Element Framework Elements",
|
|
5
5
|
"author": "LSEG",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -345,6 +345,7 @@
|
|
|
345
345
|
"chart.js": "~2.9.4",
|
|
346
346
|
"d3-interpolate": "^3.0.1",
|
|
347
347
|
"date-fns": "^2.22.1",
|
|
348
|
+
"escape-string-regexp": "^5.0.0",
|
|
348
349
|
"lightweight-charts": "^3.8.0",
|
|
349
350
|
"tslib": "^2.3.1"
|
|
350
351
|
},
|
|
@@ -369,5 +370,5 @@
|
|
|
369
370
|
"publishConfig": {
|
|
370
371
|
"access": "public"
|
|
371
372
|
},
|
|
372
|
-
"gitHead": "
|
|
373
|
+
"gitHead": "28e5224bd2c7a635857e0fe3030947e72188b831"
|
|
373
374
|
}
|