cke - 620ddf9 better smarty regex check and removed debug tests