JSVerbalExpressions icon indicating copy to clipboard operation
JSVerbalExpressions copied to clipboard

'beginCapture' is not effect when 'or'

Open pettything opened this issue 5 years ago • 1 comments

VerEx().beginCapture().find('http').or('ftp').endCapture().then(':') i want result like /((http|ftp):)/ but /(http|ftp:)/ why?

pettything avatar Mar 14 '19 06:03 pettything

I replace by VerEx().beginCapture().find('http').add('|').find('ftp').endCapture().then(':')

pettything avatar Mar 14 '19 06:03 pettything