Skip to content

Commit 20e2bed

Browse files
authored
Support dashes in android version number (#144)
1 parent bd391a4 commit 20e2bed

File tree

1 file changed

+1
-1
lines changed
  • packages/react-native-version-check/src/providers

1 file changed

+1
-1
lines changed

packages/react-native-version-check/src/providers/playStore.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class PlayStoreProvider implements IProvider {
3434
return fetch(storeUrl, opt.fetchOptions)
3535
.then(res => res.text())
3636
.then(text => {
37-
const match = text.match(/Current Version.+?>([\d.]+)<\/span>/);
37+
const match = text.match(/Current Version.+?>([\d.-]+)<\/span>/);
3838
if (match) {
3939
const latestVersion = match[1].trim();
4040

0 commit comments

Comments
 (0)