scanner: update maven repo regex

This commit is contained in:
linsui 2024-03-12 07:57:11 +00:00 committed by Hans-Christoph Steiner
parent 07a0bd7314
commit a002e46997
2 changed files with 4 additions and 1 deletions

View File

@ -50,7 +50,7 @@ class MessageStore:
errors: list = field(default_factory=list)
MAVEN_URL_REGEX = re.compile(r"""\smaven\s*(?:{.*?(?:setUrl|url)|\((?:url)?)\s*=?\s*(?:uri|Uri\.create\()?\(?\s*["']?([^\s"']+)["']?[^})]*[)}]""",
MAVEN_URL_REGEX = re.compile(r"""\smaven\s*(?:{.*?(?:setUrl|url)|\(\s*(?:url)?)\s*=?\s*(?:uri|URI|Uri\.create)?\(?\s*["']?([^\s"']+)["']?[^})]*[)}]""",
re.DOTALL)

View File

@ -759,6 +759,7 @@
- ' maven { url ''libs'' }'
- ' maven { url = uri("https://jitpack.io") }'
- ' maven { url = uri("https://maven.fabric.io/public") }'
- ' maven { url = URI("https://jitpack.io") }'
- ' maven { url MAVEN_REPO_CACHE }'
- ' maven { url(''http://releases.marmeladburk.fidesmo.com/'') }'
- ' maven {url "http://dl.bintray.com/tbruyelle/tbruyelle" }'
@ -778,3 +779,5 @@
- ' maven{url "https://plugins.gradle.org/m2/"}'
- ' maven("https://maven.pkg.jetbrains.space/public/p/compose/dev")'
- ' maven(url = "https://maven.pkg.jetbrains.space/public/p/kotlinx-html/maven")'
- ' maven ( url = "https://jitpack.io")'
- ' maven( url = "https://oss.sonatype.org/content/repositories/snapshots/" )'