Skip to content

Commit

Permalink
Improve vue regex
Browse files Browse the repository at this point in the history
  • Loading branch information
eoftedal committed Oct 30, 2024
1 parent fef6df3 commit 560ca99
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 6 deletions.
2 changes: 1 addition & 1 deletion repository/jsrepository-master.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
},
Expand Down
2 changes: 1 addition & 1 deletion repository/jsrepository-v2.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion repository/jsrepository-v3.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion repository/jsrepository-v4.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion repository/jsrepository.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
25 changes: 24 additions & 1 deletion repository/testcases.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down

0 comments on commit 560ca99

Please sign in to comment.