From 7fee31e63f7637501f78d61998164137421164e3 Mon Sep 17 00:00:00 2001 From: Chad Wilson Date: Wed, 10 Jul 2024 15:55:28 +0800 Subject: [PATCH] Fixes #440 - Reduce chance of false positives for pdf.js Generic pattern with the npm style co-ordinates seems unnecessary for detection as the test cases all pass without this pattern included. Signed-off-by: Chad Wilson --- repository/jsrepository-master.json | 1 - repository/jsrepository-v2.json | 1 - repository/jsrepository-v3.json | 1 - repository/jsrepository.json | 1 - 4 files changed, 4 deletions(-) diff --git a/repository/jsrepository-master.json b/repository/jsrepository-master.json index 1933512e..d80a6237 100644 --- a/repository/jsrepository-master.json +++ b/repository/jsrepository-master.json @@ -5993,7 +5993,6 @@ "extractors": { "uri": ["/pdf\\.js/(§§version§§)/", "/pdfjs-dist@(§§version§§)/"], "filecontent": [ - " pdfjs-dist@(§§version§§) ", "(?:const|var) pdfjsVersion = ['\"](§§version§§)['\"];", "PDFJS.version ?= ?['\"](§§version§§)['\"]", "apiVersion: ?['\"](§§version§§)['\"][\\s\\S]*,data(:[a-zA-Z.]{1,6})?,[\\s\\S]*password(:[a-zA-Z.]{1,10})?,[\\s\\S]*disableAutoFetch(:[a-zA-Z.]{1,22})?,[\\s\\S]*rangeChunkSize", diff --git a/repository/jsrepository-v2.json b/repository/jsrepository-v2.json index 98adab5d..811f28c6 100644 --- a/repository/jsrepository-v2.json +++ b/repository/jsrepository-v2.json @@ -7717,7 +7717,6 @@ "/pdfjs-dist@(§§version§§)/" ], "filecontent": [ - " pdfjs-dist@(§§version§§) ", "(?:const|var) pdfjsVersion = ['\"](§§version§§)['\"];", "PDFJS.version ?= ?['\"](§§version§§)['\"]", "apiVersion: ?['\"](§§version§§)['\"][\\s\\S]*,data(:[a-zA-Z.]{1,6})?,[\\s\\S]*password(:[a-zA-Z.]{1,10})?,[\\s\\S]*disableAutoFetch(:[a-zA-Z.]{1,22})?,[\\s\\S]*rangeChunkSize", diff --git a/repository/jsrepository-v3.json b/repository/jsrepository-v3.json index 1c302ca5..3f85f28a 100644 --- a/repository/jsrepository-v3.json +++ b/repository/jsrepository-v3.json @@ -7718,7 +7718,6 @@ "/pdfjs-dist@(§§version§§)/" ], "filecontent": [ - " pdfjs-dist@(§§version§§) ", "(?:const|var) pdfjsVersion = ['\"](§§version§§)['\"];", "PDFJS.version ?= ?['\"](§§version§§)['\"]", "apiVersion: ?['\"](§§version§§)['\"][\\s\\S]*,data(:[a-zA-Z.]{1,6})?,[\\s\\S]*password(:[a-zA-Z.]{1,10})?,[\\s\\S]*disableAutoFetch(:[a-zA-Z.]{1,22})?,[\\s\\S]*rangeChunkSize", diff --git a/repository/jsrepository.json b/repository/jsrepository.json index 11474d5a..b3e55bf3 100644 --- a/repository/jsrepository.json +++ b/repository/jsrepository.json @@ -7647,7 +7647,6 @@ "/pdfjs-dist@(§§version§§)/" ], "filecontent": [ - " pdfjs-dist@(§§version§§) ", "(?:const|var) pdfjsVersion = ['\"](§§version§§)['\"];", "PDFJS.version ?= ?['\"](§§version§§)['\"]", "apiVersion: ?['\"](§§version§§)['\"][\\s\\S]*,data(:[a-zA-Z.]{1,6})?,[\\s\\S]*password(:[a-zA-Z.]{1,10})?,[\\s\\S]*disableAutoFetch(:[a-zA-Z.]{1,22})?,[\\s\\S]*rangeChunkSize",