You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix StarCraftTest.testPlanet regex to allow hyphens in planet names #44
StarCraftTest.testPlanet fails intermittently because the shared regex ^(?! )[A-Za-z0-9' ]*(?<! )$ does not include hyphens (-), but starcraft.yml contains at least two hyphenated planet names:
"G-2275"
"LV-555"
The test is probabilistic — it only fails when the random draw picks one of
those two planets — explaining why it wasn't caught earlier.
Root cause
The regex in StarCraftTest.java:9 was written to cover the original planet
data, which had no hyphens. The hyphenated names were introduced with the
upstream starcraft.yml data and were never reflected in the test.
Update the shared regex field to include a literal hyphen (placed at the end of
the character class, which is the conventional position to avoid ambiguity with
ranges):
Activity
fix StarCraftTest.testPlanet regex to allow hyphens (closes #44)