Explorar el Código

feat: pastebin: support pastes from shell script files (#74)

Dash Eclipse hace 5 años
padre
commit
85b687c0e8
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      wbb/modules/paste.py

+ 1 - 1
wbb/modules/paste.py

@@ -37,7 +37,7 @@ from wbb.utils.pastebin import paste
 
 __MODULE__ = "Paste"
 __HELP__ = "/paste - To Paste Replied Text Or Document To Nekobin"
-pattern = re.compile(r"^text/|json$|yaml$|xml$|toml$")
+pattern = re.compile(r"^text/|json$|yaml$|xml$|toml$|x-sh$|x-shellscript$")
 
 
 async def isPreviewUp(preview: str) -> bool: