fix signature regex to handle -- properly