File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -61,10 +61,13 @@ export function getArticleLink(version: string): string | undefined {
6161 if ( ( match = version . match ( / ^ ( \d \d w \d \d ) [ a - z ] $ / ) ) && match [ 1 ] ) {
6262 return ARTICLE_PREFIX + 'minecraft-snapshot-' + match [ 1 ] + 'a'
6363 }
64- if ( ( match = version . match ( / ^ ( \d + \. \d + (?: \. \d + ) ? ) - p r e ( [ 0 - 9 ] + ) $ / ) ) && match [ 1 ] && match [ 2 ] ) {
64+ if ( ( match = version . match ( / ^ ( \d + \. \d + (?: \. \d + ) ? ) - s n a p s h o t - ( \d + ) $ / ) ) && match [ 1 ] && match [ 2 ] ) {
65+ return ARTICLE_PREFIX + 'minecraft-' + match [ 1 ] . replaceAll ( '.' , '-' ) + '-snapshot-' + match [ 2 ]
66+ }
67+ if ( ( match = version . match ( / ^ ( \d + \. \d + (?: \. \d + ) ? ) - p r e ( \d + ) $ / ) ) && match [ 1 ] && match [ 2 ] ) {
6568 return ARTICLE_PREFIX + 'minecraft-' + match [ 1 ] . replaceAll ( '.' , '-' ) + '-pre-release-' + match [ 2 ]
6669 }
67- if ( ( match = version . match ( / ^ ( \d + \. \d + (?: \. \d + ) ? ) - r c ( [ 0 - 9 ] + ) $ / ) ) && match [ 1 ] ) {
70+ if ( ( match = version . match ( / ^ ( \d + \. \d + (?: \. \d + ) ? ) - r c ( \d + ) $ / ) ) && match [ 1 ] ) {
6871 return ARTICLE_PREFIX + 'minecraft-' + match [ 1 ] . replaceAll ( '.' , '-' ) + '-release-candidate-' + match [ 2 ]
6972 }
7073 if ( version . match ( / ^ \d + \. \d + ( \. \d + ) ? $ / ) ) {
You can’t perform that action at this time.
0 commit comments