File tree 1 file changed +7
-1
lines changed
Coding_iOS/Controllers/RootControllers 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -323,7 +323,9 @@ - (void)p_setupUserActivity{
323
323
}
324
324
}else if ([self isKindOfClass: MRDetailViewController.class] || [self isKindOfClass: PRDetailViewController.class]){
325
325
MRPR *curMRPR = [self valueForKey: @" curMRPR" ];
326
- webStr = curMRPR.path ;
326
+ NSString *path = curMRPR.path ;
327
+ NSRange range = [path rangeOfString: @" /p/" ];
328
+ webStr = range.location == NSNotFound ? path: [path substringFromIndex: range.location];
327
329
}else if ([self isKindOfClass: CodeViewController.class]){
328
330
Project *curPro = ((CodeViewController *) self).myProject ;
329
331
CodeFile *curCF = ((CodeViewController *) self).myCodeFile ;
@@ -491,6 +493,10 @@ + (UIViewController *)analyseVCFromLinkStr:(NSString *)linkStr analyseMethod:(An
491
493
// MR
492
494
NSString *path = [matchedCaptures[0 ] stringByReplacingOccurrencesOfString: @" https://coding.net" withString: @" " ];
493
495
496
+ // NSString *defaultTeamStr = [NSString stringWithFormat:@"/u/%@", [Login curLoginCompany].global_key ?: [NSObject baseCompany]];
497
+ // linkStr = [linkStr stringByReplacingCharactersInRange:NSMakeRange(pRange.location, 0) withString:defaultTeamStr];
498
+
499
+
494
500
if ([matchedCaptures[3 ] isEqualToString: @" commit" ]) {
495
501
if ([presentingVC isKindOfClass: [CommitFilesViewController class ]]) {
496
502
CommitFilesViewController *vc = (CommitFilesViewController *)presentingVC;
You can’t perform that action at this time.
0 commit comments