fix bug: parse regular expression '/[\]/]/' fail

fix bug: parse regular expression '/[\]/]/' fail