fixed regex slownes in file compiler