Skip to content

Commit 3051d76

Browse files
authored
fix: show correct since version in the playground (#983)
1 parent c149f5f commit 3051d76

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/tools/lib/jsdoc/template/publish.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -1010,7 +1010,7 @@ function publishClasses(symbols, aRootNamespaces, hierarchyRoots) {
10101010

10111011
// ---- helper functions for the templates ----
10121012

1013-
var rSinceVersion = /^([0-9]+(?:\.[0-9]+(?:\.[0-9]+)?)?([-.][0-9A-Z]+)?)(?:\s|$)/i;
1013+
var rSinceVersion = /^([0-9]+(?:\.[0-9]+(?:\.[0-9]+)?)?([-.][0-9A-Z\.]+)?)(?:\s|$)/i;
10141014

10151015
function extractVersion(value) {
10161016

@@ -1026,7 +1026,6 @@ function extractVersion(value) {
10261026

10271027
var m = rSinceVersion.exec(value);
10281028
return m ? m[1] : undefined;
1029-
10301029
}
10311030

10321031
var rSince = /^(?:as\s+of|since)(?:\s+version)?\s*([0-9]+(?:\.[0-9]+(?:\.[0-9]+)?)?([-.][0-9A-Z]+)?)(?:\.$|\.\s+|[,:]\s*|\s-\s*|\s|$)/i;

0 commit comments

Comments
 (0)