@sapui5/sap.fe.core 1.96.12 → 1.96.13

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sapui5/sap.fe.core",
3
- "version": "1.96.12",
3
+ "version": "1.96.13",
4
4
  "description": "SAPUI5 Library sap.fe.core",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "author": "SAP SE (https://www.sap.com)",
@@ -6,7 +6,7 @@
6
6
  <copyright>SAP UI development toolkit for HTML5 (SAPUI5)
7
7
  (c) Copyright 2009-2021 SAP SE. All rights reserved
8
8
  </copyright>
9
- <version>1.96.12</version>
9
+ <version>1.96.13</version>
10
10
 
11
11
  <documentation>UI5 library: sap.fe.core</documentation>
12
12
 
@@ -76,6 +76,15 @@ sap.ui.define(
76
76
  "Edm.TimeOfDay"
77
77
  ];
78
78
 
79
+ function normalizeSearchTerm(sSearchTerm) {
80
+ if (!sSearchTerm) {
81
+ return undefined;
82
+ }
83
+
84
+ return sSearchTerm.replace(/"/g, " ").replace(/\\/g, "\\\\"); //escape backslash characters. Can be removed if odata/binding handles backend errors responds.
85
+ //we do not include .split() and .reduce() like in the higher releases, since these two will change the search term in an incompatible way
86
+ }
87
+
79
88
  /**
80
89
  * Returns the actual property type of a given datafield or property.
81
90
  *
@@ -2614,7 +2623,8 @@ sap.ui.define(
2614
2623
  getRefreshStrategyForIntent: getRefreshStrategyForIntent,
2615
2624
  storeControlRefreshStrategyForHash: storeControlRefreshStrategyForHash,
2616
2625
  restoreView: restoreView,
2617
- getParameterPath: getParameterPath
2626
+ getParameterPath: getParameterPath,
2627
+ normalizeSearchTerm: normalizeSearchTerm
2618
2628
  };
2619
2629
 
2620
2630
  return CommonUtils;
@@ -106,7 +106,7 @@ sap.ui.define(
106
106
  interfaces: [],
107
107
  controls: [],
108
108
  elements: [],
109
- version: "1.96.12",
109
+ version: "1.96.13",
110
110
  noLibraryCSS: true,
111
111
  extensions: {
112
112
  //Configuration used for rule loading of Support Assistant