stdin input
exec xurls
stdout 'https://foo.com'
! stdout 'bar.com'
! stdout 'custom://some-data'
! stderr .

! exec xurls missing
! stdout .
stderr 'open missing'

exec xurls input
stdout 'https://foo.com'
! stdout 'bar.com'
! stdout 'custom://some-data'
! stderr .

exec xurls -r input
stdout 'https://foo.com'
stdout 'bar.com'
! stdout 'custom://some-data'
! stderr .

exec xurls -m 'custom://' input
! stdout 'https://foo.com'
! stdout 'bar.com'
stdout 'custom://some-data'
! stderr .

-- input --
First, a link with a scheme, https://foo.com.
Then, one without a scheme, like bar.com.
Also, a link with a custom scheme, custom://some-data.
