'beginCapture' is not effect when 'or'

Author: pettythingCreated Mar 14, 2019Updated Mar 14, 2019

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

Source: VerbalExpressions/JSVerbalExpressions