From 2c7fdaa793e9e4a25aa451b8958c56e6c142524a Mon Sep 17 00:00:00 2001 From: DubrovinPavel Date: Wed, 15 Nov 2023 13:13:30 +0500 Subject: [PATCH] Fix tests.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 3f7aa466..9779ef7f 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])); },