Skip to content

Commit

Permalink
Fix tests.js
Browse files Browse the repository at this point in the history
  • Loading branch information
DubrovinPavel committed Nov 15, 2023
1 parent 787766b commit 2c7fdaa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addon/adapters/odata.js
Original file line number Diff line number Diff line change
Expand Up @@ -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]));
},
Expand Down

0 comments on commit 2c7fdaa

Please sign in to comment.