Skip to content

Commit

Permalink
fix: show correct since version in the playground (#983)
Browse files Browse the repository at this point in the history
  • Loading branch information
fifoosid authored Nov 26, 2019
1 parent c149f5f commit 3051d76
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/tools/lib/jsdoc/template/publish.js
Original file line number Diff line number Diff line change
Expand Up @@ -1010,7 +1010,7 @@ function publishClasses(symbols, aRootNamespaces, hierarchyRoots) {

// ---- helper functions for the templates ----

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

function extractVersion(value) {

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

var m = rSinceVersion.exec(value);
return m ? m[1] : undefined;

}

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

0 comments on commit 3051d76

Please sign in to comment.