A320 Crack on upper inner wing upper leading edge - Airworthy?

I was on a flight Tokyo to Shanghai and looking out the starboard window was surprised to see an approx 1.3 metre long crack snaking along the in board upper wing leading edge, it seemed stable and possibly repaired.
Was the aircraft airworthy?
Thanks for your comments that will help satisfy my curiosity. Please excuse my lack of aviation terms,