anoved/WheresThatSat

Be hyphen-agnostic

Closed this issue · 1 comments

Many satellite names are comprised of a name followed by some alphanumeric identifier. In some cases, these are separated by a space, and in some cases, they are separated by a hyphen. Either format should be acceptable. This could be implemented by outputting multiple records in the catalog (w/different separators, pointing to the same TLE) or, preferably, by matching either in the program: substitute [ -] for instances of either space or hyphen in the name before matching against the tweet, to match either separator.

As of 0e3a399 @reply handling is now hyphen-agnostic (hyphens and spaces in satellite names are both replaced with [ -] before regex matching against the tweet text).