We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e838614 commit 07220a5Copy full SHA for 07220a5
jupyterlab_git/git.py
@@ -13,8 +13,9 @@
13
14
# Git configuration options exposed through the REST API
15
ALLOWED_OPTIONS = ['user.name', 'user.email']
16
-# Regex pattern to capture (key, value) of Git configuration options
17
-CONFIG_PATTERN = re.compile(r"(?:^|\n)(\S+)\=")
+# Regex pattern to capture (key, value) of Git configuration options.
+# See https://git-scm.com/docs/git-config#_syntax for git var syntax
18
+CONFIG_PATTERN = re.compile(r"(?:^|\n)([\w\-\.]+)\=")
19
20
21
class GitAuthInputWrapper:
0 commit comments