Replace [s]{0,1} with s?

The ? symbol in JavaScript regexes matches exactly 0 or 1 of the previous token.  It has higher precedence than concatenation, which means that "https?" means "http followed optionally by an 's'".