File tree Expand file tree Collapse file tree 1 file changed +9
-8
lines changed
Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -125,17 +125,18 @@ export function getMajorMinoriOSVersion(config: Config): string {
125125 // Extract until semicolon or newline (typical end of value in pbxproj)
126126 const endIndex = pbx . indexOf ( ';' , valueStart ) ;
127127 const newlineIndex = pbx . indexOf ( '\n' , valueStart ) ;
128- const actualEnd = endIndex !== - 1 && newlineIndex !== - 1
129- ? Math . min ( endIndex , newlineIndex )
130- : endIndex !== - 1
131- ? endIndex
132- : newlineIndex !== - 1
133- ? newlineIndex
134- : pbx . length ;
128+ const actualEnd =
129+ endIndex !== - 1 && newlineIndex !== - 1
130+ ? Math . min ( endIndex , newlineIndex )
131+ : endIndex !== - 1
132+ ? endIndex
133+ : newlineIndex !== - 1
134+ ? newlineIndex
135+ : pbx . length ;
135136 let iosVersion = pbx . substring ( valueStart , actualEnd ) . trim ( ) ;
136137 // Remove trailing .0 if present
137138 if ( iosVersion . endsWith ( '.0' ) ) {
138139 iosVersion = iosVersion . slice ( 0 , - 2 ) ;
139140 }
140141 return iosVersion ;
141- }
142+ }
You can’t perform that action at this time.
0 commit comments