Skip to content

Commit

Permalink
Make nws handle states with spaces.
Browse files Browse the repository at this point in the history
  • Loading branch information
kitschysynq committed Apr 19, 2013
1 parent 02f8a0b commit 6e38735
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nws.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
zip_code_lookup = "http://www.zip-codes.com/zip-code/{0}/zip-code-{0}.asp"
nomsg = "There are no active watches, warnings or advisories, for {0}."
re_fips = re.compile(r'County FIPS:</a></td><td class="info">(\S+)</td></tr>')
re_state = re.compile(r'State:</a></td><td class="info"><a href="/state/\S\S.asp">\S\S \[(\S+)\]</a></td></tr>')
re_state = re.compile(r'State:</a></td><td class="info"><a href="/state/\S\S.asp">\S\S \[(\S+(?: \S+))?\]</a></td></tr>')
re_city = re.compile(r'City:</a></td><td class="info"><a href="/city/\S+.asp">(.*)</a></td></tr>')
more_info = "Complete weather watches, warnings, and advisories for {0}, available here: {1}"

Expand Down

0 comments on commit 6e38735

Please sign in to comment.