Please do NOT feed your hedgehog earthworms. They will cause nothing but trouble... hedgehogs' digestive systems are very sensitive and earthworms will greatly upset them. Get the snowball rolling and sometimes you can't make it stop - not to mention earthworms typically carry parasites or worse.
Okay, thank you for letting me know. Are occasional mealworms okay?
Yes, those are okay. The diet should be supplemented with plenty of treats, including cooked meats, fruits, veggies. 1-4 mealworms no more than 3 times a week. I would recommend feeding live, gut loaded mealies as well. I go into further detail on what you can/can't feed here on my page for hedgehog care.