cmd-ntrf / jupyter-lmod

Jupyter plugin that provides a tab for TACC Lmod (https://github.com/TACC/Lmod)
MIT License
28 stars 13 forks source link

Module with plus sign in name not listed #44

Closed cmd-ntrf closed 2 years ago

cmd-ntrf commented 2 years ago

Module like rstudio-server/2021.09.1+372 are not listed by jupyter-lmod.

cmd-ntrf commented 2 years ago

The problem was the regex

MODULE_REGEX_NO_HIDDEN = re.compile(r"^([^\W][\w\-_+.]*|[\w\-_+.\/]{1,}\/[\w][\w\-_.]*[^\/:])$", re.M)

that should have been

MODULE_REGEX_NO_HIDDEN = re.compile(r"^([^\W][\w\-_+.]*|[\w\-_+.\/]{1,}\/[\w][\w\-_+.]*[^\/:])$", re.M)
cmd-ntrf commented 2 years ago

Fixed by b12dd8a2f9ed918352b574ac8a6b46c7ba8dc987