mirror of
https://github.com/enzet/map-machine.git
synced 2025-06-03 03:11:52 +02:00
Fix parsing; fix code style.
This commit is contained in:
parent
9b10f29d39
commit
7bfbf32697
9 changed files with 204 additions and 151 deletions
|
@ -72,6 +72,8 @@ class Scheme:
|
|||
"""
|
||||
if color in self.colors:
|
||||
return "#" + self.colors[color]
|
||||
if color.lower() in self.colors:
|
||||
return "#" + self.colors[color.lower()]
|
||||
if color.startswith("#"):
|
||||
return color
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue