Open idozahavy opened 3 years ago
make a new class that only gets the text and the pattern and convert it to a tree of texts that goes like this
[ RegularText: {text: 'a'}, PatternText: { text: 'b', children: [ PatternText: {text: 'c'}, ] }, RegularText: {text: 'd'}, ]
make a new class that only gets the text and the pattern and convert it to a tree of texts that goes like this
[ RegularText: {text: 'a'}, PatternText: { text: 'b', children: [ PatternText: {text: 'c'}, ] }, RegularText: {text: 'd'}, ]