We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0a620c0 + fce3dfb commit 2583605Copy full SHA for 2583605
1 file changed
src/plugin-basex/main/resources/queries/basex/version.xq
@@ -23,7 +23,8 @@ let $info := db:system()
23
return if ($info instance of element(system)) then (: BaseX >= 7.1 :)
24
(: NOTE: The element containing the version may be localized, so look for version-like strings. :)
25
for $text in $info//*/text()
26
- where fn:matches($text, "^([789]|[1-9][0-9]+)\.[0-9]+(\.[0-9]+)?( [a-z]+)?$")
+ (: pattern matches 12.1, 12.1.1, 12.1.1 beta, or 12.1.1. beta eee7a3q :)
27
+ where fn:matches($text, "^([789]|[1-9][0-9]+)(\.[0-9])+(\.[0-9]+)?( [a-z]+)?( [a-z0-9]+)?$")
28
return $text
29
else (: BaseX == 7.0 :)
30
for $line in fn:tokenize($info, "(\r\n?|\n)")
0 commit comments