simplify code to make separators in single func.
fix link detection when hover the h in ttp:/…

When the separator in the left is found, we may only have ' ht' so far.