Skip to content

Commit bb6f244

Browse files
committed
add regex matching back to server_info
1 parent 76605ce commit bb6f244

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jupyter_server/serverapp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1736,7 +1736,7 @@ def list_running_servers(runtime_dir=None):
17361736
return
17371737

17381738
for file_name in os.listdir(runtime_dir):
1739-
if file_name.startswith('jpserver-'):
1739+
if re.match('jpserver-(.+).json', file_name):
17401740
with io.open(os.path.join(runtime_dir, file_name), encoding='utf-8') as f:
17411741
info = json.load(f)
17421742

0 commit comments

Comments
 (0)