Skip to content

Commit

Permalink
fix quarkless detection
Browse files Browse the repository at this point in the history
  • Loading branch information
Sup2point0 authored Apr 8, 2024
1 parent 52ba725 commit 25213f0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion quarkdown/quarkify.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,8 @@ def extract_quarks(text: str) -> dict:
# TODO splitting twice is really, really slow, how do we optimise this
for idx, line in enumerate(text.split("\n")):
if idx < LIVE_LINES:
if flags.get("live", False) is False:
# once we reach LIVE_LINES, we force quit if we haven’t seen `#QUARK live!`
if flags.get("live", idx != LIVE_LINES) is False:
raise Quarkless("#QUARK file inactive")

for part in line.split():
Expand Down

0 comments on commit 25213f0

Please sign in to comment.