Open mayyxeng opened 1 year ago
Thanks for reporting and posting a fix.
I don't remember precisely, but does "Core 1 " (note the space) resolve this too? It's quite the hack, but I seem to recall that's how I got around this issue.
Obviously the more fundamental problem is using this string matching system in the first place... I couldn't find a better way to do this without major API additions elsewhere.
Thanks for the quick response.
Yes "Core 1 " (with white-space) does solve the issue. And that is a much simpler and better hack than regular expression.
Method
getNode
inDiplomaticNetworkNodeMapping
cannot handle more than 9 cores. The issue is with how string matching is performed, consider:Here we will have
matches = List(true, true)
, because "Core 10" contains both "Core 1" and "Core 10". I would say the desired results should have beenmatches = List(true, false)
.A quick fix is: