Guarding expensive regex computation by much cheaper checks to reduce compilation time. Compiling `time ninja -j 1 bf_draw_shaders` On MacOS M1 Max (debug build with glsl_preprocess optimization turned on): Before 13.01 sec After 9.08 sec Pull Request: https://projects.blender.org/blender/blender/pulls/138336