Skip to content

Commit

Permalink
OCR Derp fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Oliver Smith committed Mar 12, 2015
1 parent 60210de commit 024cf3b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ v6.13.3 Mar 11 2015
. (kfsone) Fixed "--blackmarket" and "--trading" in local,
. (Dry411s) Resolves #200 New ships for 1.2,
. (kfsone) +103 Systems
. (kfsone) OCR Derp fixes

v6.13.2 Mar 10 2015
. (Tromador) Added "Painite" to Item.csv
Expand Down
15 changes: 12 additions & 3 deletions cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@


ocrDerp = re.compile(r'''(
^.$ |
LAN[O0]ING |
[O0][O0]CK |
[O0]INEILL |
Expand Down Expand Up @@ -164,6 +165,7 @@
REFINERY
)$ |
ORBIDAL |
ORDITAL |
\bBRIOGER |
\bJUOSON |
LANOER |
Expand Down Expand Up @@ -229,7 +231,7 @@
\bHORNUCH\b |
\bKLU\sDZE |
^[DR]HN\b |
SU\sI?RVEY\b |
SU\sI?RVEY$ |
H[DO0]L[O0]ING |
H[D0]LDING |
M[DO0]HMAN[O0] |
Expand All @@ -251,7 +253,14 @@
\bC[O0]LCNY\b |
\bOOCTE\b |
\bBULGAFIIN\b |
\bWH\sIEEL
\bWH\sIEEL |
\bBR8NNAN\b |
\b(ID)?ING$ |
GATEVVAY$ |
HU\sIB$ |
CLAI\sI?M$ |
\bUITY$ |
\bDING$
)''', flags=re.X)


Expand Down Expand Up @@ -452,7 +461,7 @@ def getItemByNameIndex(cur):


def checkForOcrDerp(tdenv, systemName, stationName):
match = ocrDerp.search(stationName)
match = ocrDerp.search(stationName.upper())
if match:
tdenv.NOTE(
"Ignoring '{}/{}' because it looks like OCR derp."
Expand Down

0 comments on commit 024cf3b

Please sign in to comment.