Fix regex to match the one used at runtime.