@sapui5/sap.fe.core 1.96.12 → 1.96.14
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
package/src/sap/fe/core/.library
CHANGED
|
@@ -76,6 +76,14 @@ sap.ui.define(
|
|
|
76
76
|
"Edm.TimeOfDay"
|
|
77
77
|
];
|
|
78
78
|
|
|
79
|
+
function normalizeSearchTerm(sSearchTerm) {
|
|
80
|
+
if (!sSearchTerm) {
|
|
81
|
+
return undefined;
|
|
82
|
+
}
|
|
83
|
+
return '"' + sSearchTerm.replace(/"/g, " ").replace(/\\/g, "\\\\") + '"'; //escape backslash characters. Can be removed if odata/binding handles backend errors responds.
|
|
84
|
+
//we do not include .split() and .reduce() like in the higher releases, since these two will change the search term in an incompatible way
|
|
85
|
+
}
|
|
86
|
+
|
|
79
87
|
/**
|
|
80
88
|
* Returns the actual property type of a given datafield or property.
|
|
81
89
|
*
|
|
@@ -2614,7 +2622,8 @@ sap.ui.define(
|
|
|
2614
2622
|
getRefreshStrategyForIntent: getRefreshStrategyForIntent,
|
|
2615
2623
|
storeControlRefreshStrategyForHash: storeControlRefreshStrategyForHash,
|
|
2616
2624
|
restoreView: restoreView,
|
|
2617
|
-
getParameterPath: getParameterPath
|
|
2625
|
+
getParameterPath: getParameterPath,
|
|
2626
|
+
normalizeSearchTerm: normalizeSearchTerm
|
|
2618
2627
|
};
|
|
2619
2628
|
|
|
2620
2629
|
return CommonUtils;
|