Skip to content

Commit

Permalink
Update odata.js
Browse files Browse the repository at this point in the history
  • Loading branch information
DubrovinPavel committed Nov 15, 2023
1 parent 2c7fdaa commit 8528c29
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 8528c29

Please sign in to comment.