fix font detect regex bug