File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
src/api/integrations/chatbot/typebot/services Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -245,11 +245,11 @@ export class TypebotService {
245245
246246 const menuContent = formattedText . match ( / \[ m e n u \] ( [ \s \S ] * ?) \[ \/ m e n u \] / ) ?. [ 1 ] ;
247247 if ( menuContent ) {
248- const sections = menuContent . match ( / \[ s e c t i o n \] ( [ \s \S ] * ?) (? = \[ s e c t i o n \] | \[ \/ s e c t i o n \] ) / g) ;
248+ const sections = menuContent . match ( / \[ s e c t i o n \] ( [ \s \S ] * ?) (? = \[ s e c t i o n \] | \[ \/ s e c t i o n \] | \[ \/ m e n u \] ) / g) ;
249249 if ( sections ) {
250250 sections . forEach ( ( section ) => {
251251 const sectionTitle = section . match ( / t i t l e : ( .* ?) (?: \n | $ ) / ) ?. [ 1 ] ?. trim ( ) ;
252- const rows = section . match ( / \[ r o w \] ( [ \s \S ] * ?) (? = \[ r o w \] | \[ \/ s e c t i o n \] | \[ \/ m e n u \] ) / g) ;
252+ const rows = section . match ( / \[ r o w \] ( [ \s \S ] * ?) (? = \[ r o w \] | \[ \/ r o w \] | \[ \/ s e c t i o n \] | \[ \/ m e n u \] ) / g) ;
253253
254254 const sectionData = {
255255 title : sectionTitle ,
@@ -437,11 +437,11 @@ export class TypebotService {
437437
438438 const menuContent = formattedText . match ( / \[ m e n u \] ( [ \s \S ] * ?) \[ \/ m e n u \] / ) ?. [ 1 ] ;
439439 if ( menuContent ) {
440- const sections = menuContent . match ( / \[ s e c t i o n \] ( [ \s \S ] * ?) (? = \[ s e c t i o n \] | \[ \/ s e c t i o n \] ) / g) ;
440+ const sections = menuContent . match ( / \[ s e c t i o n \] ( [ \s \S ] * ?) (? = \[ s e c t i o n \] | \[ \/ s e c t i o n \] | \[ \/ m e n u \] ) / g) ;
441441 if ( sections ) {
442442 sections . forEach ( ( section ) => {
443443 const sectionTitle = section . match ( / t i t l e : ( .* ?) (?: \n | $ ) / ) ?. [ 1 ] ?. trim ( ) ;
444- const rows = section . match ( / \[ r o w \] ( [ \s \S ] * ?) (? = \[ r o w \] | \[ \/ s e c t i o n \] | \[ \/ m e n u \] ) / g) ;
444+ const rows = section . match ( / \[ r o w \] ( [ \s \S ] * ?) (? = \[ r o w \] | \[ \/ r o w \] | \[ \/ s e c t i o n \] | \[ \/ m e n u \] ) / g) ;
445445
446446 const sectionData = {
447447 title : sectionTitle ,
You can’t perform that action at this time.
0 commit comments