iTaxoTools / TaxI2-legacy

Calculates genetic differences between DNA sequences
GNU General Public License v3.0
0 stars 0 forks source link

Filter tabfile columns #63

Closed StefanPatman closed 3 years ago

StefanPatman commented 3 years ago

Only keep alphanumericals, underscores and hyphens. This prevents hidden characters like BOM from interfering with column-matching. Closes #62.

necrosovereign commented 3 years ago

I think that regex at library/programstate, line 46, should be changed to ([a-zA-Z0-9_-]+) for efficiency. This way the line 47 iterates over groups of allowed symbols, instead of individual symbols.

StefanPatman commented 3 years ago

Right! I'll change this immediately.