fix home access for JDS

This commit is contained in:
Riley Housden 2022-06-30 18:15:25 -04:00
parent cc6bbe937f
commit eedecb34d5
Signed by: InValidFire
GPG key ID: 0D6208F6DF56B4D8

View file

@ -37,7 +37,7 @@ def jds_preproc(cmd: str, **kw):
cmd = f'print("\'{HOME}\' not found.")'
except ValueError:
cmd = f'print("\'{cmd.strip().replace("`", "")}\' is not a valid JDN.")'
elif cmd.startswith("`") and not cmd.strip().endswith("`"):
elif cmd.startswith("`") and not (len(cmd.strip()) >= 2 and cmd.strip().endswith("`")):
try:
johnny_decimal_notation = cmd.replace("`", "")
if johnny_decimal_notation == "\n":