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 {
245
245
246
246
const menuContent = formattedText . match ( / \[ m e n u \] ( [ \s \S ] * ?) \[ \/ m e n u \] / ) ?. [ 1 ] ;
247
247
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) ;
249
249
if ( sections ) {
250
250
sections . forEach ( ( section ) => {
251
251
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) ;
253
253
254
254
const sectionData = {
255
255
title : sectionTitle ,
@@ -437,11 +437,11 @@ export class TypebotService {
437
437
438
438
const menuContent = formattedText . match ( / \[ m e n u \] ( [ \s \S ] * ?) \[ \/ m e n u \] / ) ?. [ 1 ] ;
439
439
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) ;
441
441
if ( sections ) {
442
442
sections . forEach ( ( section ) => {
443
443
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) ;
445
445
446
446
const sectionData = {
447
447
title : sectionTitle ,
You can’t perform that action at this time.
0 commit comments