From 560ca991be4578600ff79bc7a48d7c5345d824d1 Mon Sep 17 00:00:00 2001 From: Erlend Oftedal Date: Wed, 30 Oct 2024 20:01:27 +0100 Subject: [PATCH] Improve vue regex --- repository/jsrepository-master.json | 2 +- repository/jsrepository-v2.json | 2 +- repository/jsrepository-v3.json | 2 +- repository/jsrepository-v4.json | 2 +- repository/jsrepository.json | 2 +- repository/testcases.json | 25 ++++++++++++++++++++++++- 6 files changed, 29 insertions(+), 6 deletions(-) diff --git a/repository/jsrepository-master.json b/repository/jsrepository-master.json index 17d8df5a..df7890be 100644 --- a/repository/jsrepository-master.json +++ b/repository/jsrepository-master.json @@ -4515,7 +4515,7 @@ "const version[ ]*=[ ]*\"(§§version§§)\";[\\s]*/\\*\\*[\\s]*\\* SSR utils for \\\\@vue/server-renderer", "\\.__vue_app__=.{0,8000}?const [a-z]+=\"(§§version§§)\",", "let [A-Za-z]+=\"(§§version§§)\",..=\"undefined\"!=typeof window&&window.trustedTypes;if\\(..\\)try\\{.=..\\.createPolicy\\(\"vue\",", - "isCustomElement.{1,5}?compilerOptions.{0,400}exposeProxy.{0,700}\"(§§version§§)\"" + "isCustomElement.{1,5}?compilerOptions.{0,500}exposeProxy.{0,700}\"(§§version§§)\"" ], "func": ["Vue.version"] }, diff --git a/repository/jsrepository-v2.json b/repository/jsrepository-v2.json index 91a982f7..257a5877 100644 --- a/repository/jsrepository-v2.json +++ b/repository/jsrepository-v2.json @@ -5907,7 +5907,7 @@ "const version[ ]*=[ ]*\"(§§version§§)\";[\\s]*/\\*\\*[\\s]*\\* SSR utils for \\\\@vue/server-renderer", "\\.__vue_app__=.{0,8000}?const [a-z]+=\"(§§version§§)\",", "let [A-Za-z]+=\"(§§version§§)\",..=\"undefined\"!=typeof window&&window.trustedTypes;if\\(..\\)try\\{.=..\\.createPolicy\\(\"vue\",", - "isCustomElement.{1,5}?compilerOptions.{0,400}exposeProxy.{0,700}\"(§§version§§)\"" + "isCustomElement.{1,5}?compilerOptions.{0,500}exposeProxy.{0,700}\"(§§version§§)\"" ], "func": [ "Vue.version" diff --git a/repository/jsrepository-v3.json b/repository/jsrepository-v3.json index 5e25f34c..0f622633 100644 --- a/repository/jsrepository-v3.json +++ b/repository/jsrepository-v3.json @@ -6044,7 +6044,7 @@ "const version[ ]*=[ ]*\"(§§version§§)\";[\\s]*/\\*\\*[\\s]*\\* SSR utils for \\\\@vue/server-renderer", "\\.__vue_app__=.{0,8000}?const [a-z]+=\"(§§version§§)\",", "let [A-Za-z]+=\"(§§version§§)\",..=\"undefined\"!=typeof window&&window.trustedTypes;if\\(..\\)try\\{.=..\\.createPolicy\\(\"vue\",", - "isCustomElement.{1,5}?compilerOptions.{0,400}exposeProxy.{0,700}\"(§§version§§)\"" + "isCustomElement.{1,5}?compilerOptions.{0,500}exposeProxy.{0,700}\"(§§version§§)\"" ], "func": [ "Vue.version" diff --git a/repository/jsrepository-v4.json b/repository/jsrepository-v4.json index 76533dae..9010cfa4 100644 --- a/repository/jsrepository-v4.json +++ b/repository/jsrepository-v4.json @@ -6043,7 +6043,7 @@ "const version[ ]*=[ ]*\"(§§version§§)\";[\\s]*/\\*\\*[\\s]*\\* SSR utils for \\\\@vue/server-renderer", "\\.__vue_app__=.{0,8000}?const [a-z]+=\"(§§version§§)\",", "let [A-Za-z]+=\"(§§version§§)\",..=\"undefined\"!=typeof window&&window.trustedTypes;if\\(..\\)try\\{.=..\\.createPolicy\\(\"vue\",", - "isCustomElement.{1,5}?compilerOptions.{0,400}exposeProxy.{0,700}\"(§§version§§)\"" + "isCustomElement.{1,5}?compilerOptions.{0,500}exposeProxy.{0,700}\"(§§version§§)\"" ], "func": [ "Vue.version" diff --git a/repository/jsrepository.json b/repository/jsrepository.json index b8526788..dd274cfd 100644 --- a/repository/jsrepository.json +++ b/repository/jsrepository.json @@ -5855,7 +5855,7 @@ "const version[ ]*=[ ]*\"(§§version§§)\";[\\s]*/\\*\\*[\\s]*\\* SSR utils for \\\\@vue/server-renderer", "\\.__vue_app__=.{0,8000}?const [a-z]+=\"(§§version§§)\",", "let [A-Za-z]+=\"(§§version§§)\",..=\"undefined\"!=typeof window&&window.trustedTypes;if\\(..\\)try\\{.=..\\.createPolicy\\(\"vue\",", - "isCustomElement.{1,5}?compilerOptions.{0,400}exposeProxy.{0,700}\"(§§version§§)\"" + "isCustomElement.{1,5}?compilerOptions.{0,500}exposeProxy.{0,700}\"(§§version§§)\"" ], "func": [ "Vue.version" diff --git a/repository/testcases.json b/repository/testcases.json index f0c79f6c..de4dd0b2 100644 --- a/repository/testcases.json +++ b/repository/testcases.json @@ -208,7 +208,30 @@ ] }, "https://cdnjs.cloudflare.com/ajax/libs/vue/§§version§§/vue.global.prod.min.js": { - "versions": ["3.5.12", "3.4.27", "3.2.37", "3.2.36", "3.2.45"] + "versions": ["3.5.12", "3.4.27", "3.2.37", "3.2.36", "3.2.45"], + "additionalVersions": [ + "3.5.10", + "3.5.8", + "3.5.6", + "3.5.4", + "3.5.2", + "3.5.0", + "3.4.26", + "3.4.26", + "3.4.24", + "3.4.22", + "3.4.20", + "3.4.18", + "3.4.16", + "3.4.14", + "3.4.12", + "3.4.10", + "3.4.8", + "3.4.6", + "3.4.4", + "3.4.2", + "3.4.0" + ] }, "https://cdnjs.cloudflare.com/ajax/libs/vue/§§version§§/vue.min.js": { "versions": ["2.7.6", "1.0.28"]