scancommitforcc: don't allow # inside <to>