File tree Expand file tree Collapse file tree 2 files changed +6
-8
lines changed Expand file tree Collapse file tree 2 files changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -11336,14 +11336,13 @@ const getVersionFromIssueBody = (issueBody) => {
11336
11336
continue;
11337
11337
}
11338
11338
11339
- const [rnInfoOutputWithVersion] =
11340
- rnInfoOutput.text.match(/react-native(.*)=>/);
11339
+ const rnInfoRNPart = rnInfoOutput.text.match(/react-native(.*)=>/);
11341
11340
11342
- if (!rnInfoOutputWithVersion ) {
11341
+ if (!rnInfoRNPart || rnInfoRNPart.length === 0 ) {
11343
11342
continue;
11344
11343
}
11345
11344
11346
- const foundVersions = findVersions(rnInfoOutputWithVersion , {
11345
+ const foundVersions = findVersions(rnInfoRNPart[0] , {
11347
11346
loose: true,
11348
11347
});
11349
11348
Original file line number Diff line number Diff line change @@ -48,14 +48,13 @@ const getVersionFromIssueBody = (issueBody) => {
48
48
continue ;
49
49
}
50
50
51
- const [ rnInfoOutputWithVersion ] =
52
- rnInfoOutput . text . match ( / r e a c t - n a t i v e ( .* ) = > / ) ;
51
+ const rnInfoRNPart = rnInfoOutput . text . match ( / r e a c t - n a t i v e ( .* ) = > / ) ;
53
52
54
- if ( ! rnInfoOutputWithVersion ) {
53
+ if ( ! rnInfoRNPart || rnInfoRNPart . length === 0 ) {
55
54
continue ;
56
55
}
57
56
58
- const foundVersions = findVersions ( rnInfoOutputWithVersion , {
57
+ const foundVersions = findVersions ( rnInfoRNPart [ 0 ] , {
59
58
loose : true ,
60
59
} ) ;
61
60
You can’t perform that action at this time.
0 commit comments