File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -13,13 +13,21 @@ pub(crate) struct CloudGpuInfo {
13
13
}
14
14
15
15
fn extract_url ( input : & str ) -> String {
16
- let Ok ( re ) = Regex :: new ( r"fermyon-cloud-gpu: (https://[^\s]+)" ) else {
16
+ let Ok ( re_new ) = Regex :: new ( r"View application: (https://[^\s]+)" ) else {
17
17
return String :: from ( FALLBACK_URL ) ;
18
18
} ;
19
- let Some ( captures) = re. captures ( input) else {
19
+ if let Some ( captures) = re_new. captures ( input) {
20
+ return captures[ 1 ] . to_string ( ) ;
21
+ }
22
+
23
+ let Ok ( re_old) = Regex :: new ( r"fermyon-cloud-gpu: (https://[^\s]+)" ) else {
20
24
return String :: from ( FALLBACK_URL ) ;
21
25
} ;
22
- captures[ 1 ] . to_string ( )
26
+ if let Some ( captures) = re_old. captures ( input) {
27
+ return captures[ 1 ] . to_string ( ) ;
28
+ } ;
29
+
30
+ String :: from ( FALLBACK_URL )
23
31
}
24
32
25
33
impl CloudGpuInfo {
You can’t perform that action at this time.
0 commit comments