Skip to content

Commit

Permalink
[ML] [7.17] Fixing string escaping (#194530)
Browse files Browse the repository at this point in the history
Fixes incomplete string escaping issue in ML's saved object service.
  • Loading branch information
jgowdyelastic authored Oct 2, 2024
1 parent 4ab101a commit e25fe5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x-pack/plugins/ml/server/saved_objects/service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ export function jobSavedObjectServiceFactory(
if (id.match('\\*') === null) {
return jobIds.includes(id);
}
const regex = new RegExp(id.replace('*', '.*'));
const regex = new RegExp(id.replaceAll('*', '.*'));
return jobIds.some((jId) => typeof jId === 'string' && regex.exec(jId));
});
}
Expand Down

0 comments on commit e25fe5b

Please sign in to comment.