Skip to content

Commit 1ffc921

Browse files
Update playStore.js (#165)
1 parent 20e2bed commit 1ffc921

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(/\[\[\["([\d.]+?)"\]\]/);
3838
if (match) {
3939
const latestVersion = match[1].trim();
4040

0 commit comments

Comments
 (0)