Jelajahi Sumber

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

Dash Eclipse 5 tahun lalu
induk
melakukan
85b687c0e8
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  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: