Is this true or not

Is it ok to have ice cream and junk food on your period apparently if you eat ice cream it will affect your period by making it shorter and painful and if you have chocolates or crisps you can affect the period over time by making it irregular is this all true because some say it’s ok to have ice cream etc on your period as we crave food in our period but I’m really confused

Thanks for your help.