Skip to content

Commit 742d542

Browse files
committed
.
1 parent 201d089 commit 742d542

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

nbgitpuller/pull.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ class GitPuller(Configurable):
5555
default_value=False,
5656
config=True,
5757
help="""
58-
List of URLs described as Python regular expressions (using re.match()) where it
59-
is permitted to autorun scripts from the pulled project as a pre-initialisation
58+
List of URLs described as Python regular expressions (using re.fullmatch()) where
59+
it is permitted to autorun scripts from the pulled project as a pre-initialisation
6060
step. Enable this only if you understand and accept the risks of AUTORUN.INF.
6161
6262
When set to boolean True, all URLs are allowed, whilst False (default) autorun
@@ -178,7 +178,7 @@ def autorun(self, operation="method"):
178178

179179
if not self.autorun_allow:
180180
return
181-
if not any(( re.match(pattern, self.git_url) for pattern in self.autorun_allow )):
181+
if not any(( re.fullmatch(pattern, self.git_url) for pattern in self.autorun_allow )):
182182
return
183183

184184
script = next(( s for s in self._autorun_script if os.path.exists(os.path.join(self.repo_dir, s)) ), None)

0 commit comments

Comments
 (0)