From 8528c2981fb42f88c4896b31d05a6d1170e46bcc Mon Sep 17 00:00:00 2001 From: DubrovinPavel Date: Wed, 15 Nov 2023 13:17:00 +0500 Subject: [PATCH] Update odata.js --- addon/adapters/odata.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addon/adapters/odata.js b/addon/adapters/odata.js index 9779ef7f..026164ba 100644 --- a/addon/adapters/odata.js +++ b/addon/adapters/odata.js @@ -694,7 +694,7 @@ export default DS.RESTAdapter.extend({ @return {String} Model name. */ getModelNameFromOdataContext(context) { - const regex = /(?<=\$metadata#)\w*(?=\(|\/)/g; + const regex = /(?<=\$metadata#)\w*(?=[\(\/])/g; return odataSingularize(dasherize(regex.exec(context)[0])); },