mirror of
https://github.com/arcan1s/ahriman.git
synced 2026-11-11 07:30:28 +00:00
fix: allow colon in options interpolation
This commit is contained in:
1 parent
df2e98a1d3
commit
9e30e98e90
2 files changed
+8
-1
No files matched your search
@@ -52,7 +52,7 @@ class ShellInterpolator(configparser.Interpolation):
|
||||
def identifiers() -> Generator[tuple[str | None, str], None, None]:
|
||||
# extract all found identifiers and parse them
|
||||
for identifier in ShellTemplate(value).get_identifiers():
|
||||
match identifier.split(":"):
|
||||
match identifier.rsplit(":", maxsplit=1):
|
||||
case [lookup_option]: # single option from the same section
|
||||
yield None, lookup_option
|
||||
case [lookup_section, lookup_option]: # reference to another section
|
||||
|
||||
Reference in new issue
Block a user