[hierarchy-table] Adapt removeHierarchyColumn code to items with multiple leaves-levels
[hierarchy-table] Adapt removeHierarchyColumn code to items with multiple leaves-levels

Example with the following table (remove [A-Z]+ column, keep [a-z]+[0-9]* one):

A
- AA
- - aa1
- - aa2
- AB
- - ab
- - ABA
- ac

Previous code would have led to:
- aa1
- aa2
- ab
- ABA

Instead of:
- aa1
- aa2
- ab
- ac

dubzzz/js-tools,dubzzz/js-tools