Skip to content

Commit

Permalink
fixes linter script to support : or = in property values in adoc file…
Browse files Browse the repository at this point in the history
…s, too
  • Loading branch information
paulroemer committed Mar 26, 2020
1 parent ac38249 commit b016f03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def load_asciidoc_attributes(adocFile):
result = {}
possibleAttributes = [ line for line in open(adocFile, "r", encoding="utf-8") if line.startswith(":")]
for attr in possibleAttributes:
m = re.search("^:(.*):(.*)$", attr)
m = re.search("^:([^:|=]*):(.*)$", attr)
if m:
result[m.group(1).strip()] = m.group(2).strip();
try:
Expand Down

0 comments on commit b016f03

Please sign in to comment.