Skip to content

Commit 41f8abd

Browse files
committed
hr name fixed
1 parent b57e311 commit 41f8abd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/frontend_react/src/services/TaskService.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ export class TaskService {
9595
*/
9696
static splitSubtaskAction(action: string): { description: string; functionOrDetails: string | null } {
9797
// Check for "Function:" pattern (with period before Function)
98+
9899
const functionMatch = action.match(/^(.+?)\.\s*Function:\s*(.+)$/);
99100
if (functionMatch) {
100101
return {
@@ -125,9 +126,8 @@ export class TaskService {
125126
*/
126127
static cleanTextToSpaces(text: string): string {
127128
if (!text) return '';
128-
129129
// Replace any non-alphanumeric character with a space
130-
let cleanedText = text.replace(/[^a-zA-Z0-9]/g, ' ');
130+
let cleanedText = text.replace("Hr_Agent", "HR_Agent").trim().replace(/[^a-zA-Z0-9]/g, ' ');
131131

132132
// Clean up multiple spaces and trim
133133
cleanedText = cleanedText.replace(/\s+/g, ' ').trim();

0 commit comments

Comments
 (0)