diff --git a/lib/datasource/pypi/index.ts b/lib/datasource/pypi/index.ts index 2e98b5e5b96d8814f9af7f8d5262db10b61d7ba8..19bee498cf3445b956f88a81cafe29a05a2aef80 100644 --- a/lib/datasource/pypi/index.ts +++ b/lib/datasource/pypi/index.ts @@ -172,11 +172,11 @@ function cleanSimpleHtml(html: string): string { .replace(/<\/?pre>/, '') // Certain simple repositories like artifactory don't escape > and < .replace( - /data-requires-python="(.*?)>(.*?)"/g, + /data-requires-python="([^"]*?)>([^"]*?)"/g, 'data-requires-python="$1>$2"' ) .replace( - /data-requires-python="(.*?)<(.*?)"/g, + /data-requires-python="([^"]*?)<([^"]*?)"/g, 'data-requires-python="$1<$2"' ) );