'beginCapture' 在 'or' 条件下不起作用

作者: pettything创建于 2019年3月14日更新于 2019年3月14日

`VerEx().beginCapture().find('http').or('ftp').endCapture().then(':')` 我想得到的结果是 /((http|ftp):)/,但实际结果是 /(http|ftp:)/,为什么会这样?

内容来源: VerbalExpressions/JSVerbalExpressions