Curve-Cleaner

grasshopper python script : Curve Cleaner measures every input curve and separates short fragments from valid geometry using an adjustable minimum-length threshold. Download : https://parametrichouse.com/parametric/ph-tools-004-curve-cleaner/