Skip to content

Commit 974ae9b

Browse files
authored
Resolve issue with overly greedy regex capturing entire response (#111)
1 parent 9b15539 commit 974ae9b

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)