/**
 * regular expression to match verseNumber
 *
 * -- John 1:1
 * -- Joh 1
 * -- Joh 123:1-3
 * -- 1 Col 1:1-15
 */ const reg = /\-{2}(([123])*)(\w{3,})\+\d{0,3}\:*\d{0,3}\-*\d{0,3}$/ ; /**
 * regular expression to match
 * --John12:1-3
 * --John1:1
 */ const shortReg = /\-{2}([123])*[A-z]{3,}\d{1,3}\:\d{1,3}(\-\d{1,3})*/ ; param verse constructor export const VerseTypoCheck = ( verse ) : string => { return verse . match ( shortReg ) ?. first ( ) ; } ;