mirror of
https://github.com/daylinmorgan/viv.git
synced 2024-11-14 04:57:53 -06:00
fix: ignore commented lines in viv run
This commit is contained in:
parent
9a7dac8cf6
commit
d90db35a84
1 changed files with 3 additions and 2 deletions
|
@ -52,7 +52,7 @@ from typing import (
|
||||||
from urllib.error import HTTPError
|
from urllib.error import HTTPError
|
||||||
from urllib.request import urlopen
|
from urllib.request import urlopen
|
||||||
|
|
||||||
__version__ = "23.5a6"
|
__version__ = "23.5a6-dev"
|
||||||
|
|
||||||
|
|
||||||
class Spinner:
|
class Spinner:
|
||||||
|
@ -1023,7 +1023,8 @@ def uses_viv(txt: str) -> bool:
|
||||||
return bool(
|
return bool(
|
||||||
re.search(
|
re.search(
|
||||||
"""
|
"""
|
||||||
\s*__import__\(\s*["']viv["']\s*\).use\(.*
|
^(?!\#)\s*
|
||||||
|
__import__\(\s*["']viv["']\s*\).use\(.*
|
||||||
|
|
|
|
||||||
from\ viv\ import\ use
|
from\ viv\ import\ use
|
||||||
|
|
|
|
||||||
|
|
Loading…
Reference in a new issue