Map terms containing a double whitespace break the Gargantext.Core.Text.Terms.WithList module
Hi, I've noticed that some Map terms might contain double white-space such as :
"photo net":{"size":1,"list":"MapTerm","children":[]}
I don't know the origin of those double white-spaces (maybe a parsing issue with bad-encoded dots as the original word here was "photo.net") but they induce a malfunction of the Gargantext.Core.Text.Terms.WithList module and more precisely the buildPatterns function. When this function tries to reconstruct the map term as a pattern, "photo net" turns into ["photo","","net"]. The presence of "" in the alt list induces an error and ends the entire buildPatterns process.
Maybe we should remove "" and other artifacts upstream of the alt list before processing it.
Thx