File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/frontend_react/src/services Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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 * F u n c t i o n : \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 - z A - Z 0 - 9 ] / g, ' ' ) ;
130+ let cleanedText = text . replace ( "Hr_Agent" , "HR_Agent" ) . trim ( ) . replace ( / [ ^ a - z A - Z 0 - 9 ] / g, ' ' ) ;
131131
132132 // Clean up multiple spaces and trim
133133 cleanedText = cleanedText . replace ( / \s + / g, ' ' ) . trim ( ) ;
You can’t perform that action at this time.
0 commit comments