I don't know about the legal end of it but the main reason for not using galvanized parts on gas lines is it tends to flake off and can plug up the small passages. If it's in good shape you might be ok. If there's room you could install a drip leg to catch the flakes.