Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixing title with space not managed. Refs #237

  • Loading branch information...
commit beee5922f92aa2756d5ff5881fe5bd1713e6120f 1 parent 15817ad
@kenji21 kenji21 authored
View
2  Application/GBCommentComponentsProvider.m
@@ -100,7 +100,7 @@ - (NSString *)remoteMemberCrossReferenceRegex:(BOOL)templated {
GBRETURN_ON_DEMAND([self crossReferenceRegexForRegex:[self remoteMemberCrossReferenceRegex:NO]]);
} else {
//GBRETURN_ON_DEMAND(@"([+-]?)\\[([^]\\s]+)\\s+(\\S+)\\]");
- GBRETURN_ON_DEMAND(@"\\[?(\\w*)\\]?\\(?[+-]?\\[([^]\\s]+)\\s+(\\S+)\\]\\)?");
+ GBRETURN_ON_DEMAND(@"\\[?([\\w\\s]*)\\]?\\(?[+-]?\\[([^]\\s]+)\\s+(\\S+)\\]\\)?");
}
}
View
2  Testing/GBCommentsProcessor-PreprocessingTesting.m
@@ -609,10 +609,12 @@ - (void)testStringByConvertingCrossReferencesInString_shouldKeepManualObjectMeth
NSString *result1 = [processor stringByConvertingCrossReferencesInString:@"[text](+[Class method])" withFlags:0];
NSString *result2 = [processor stringByConvertingCrossReferencesInString:@"[text]([Class doSomething:withVars:])" withFlags:0];
NSString *result3 = [processor stringByConvertingCrossReferencesInString:@"[text](-[Class value])" withFlags:0];
+ NSString *result4 = [processor stringByConvertingCrossReferencesInString:@"[text with space](+[Class method])" withFlags:0];
assertThat(result1, is(@"[text](Classes/Class.html#//api/name/method)"));
assertThat(result2, is(@"[text](Classes/Class.html#//api/name/doSomething:withVars:)"));
assertThat(result3, is(@"[text](Classes/Class.html#//api/name/value)"));
+ assertThat(result4, is(@"[text with space](Classes/Class.html#//api/name/method)"));
}
- (void)testStringByConvertingCrossReferencesInString_shouldIgnoreKnownObjectsInManualLinkDescriptionOrTitle {
Please sign in to comment.
Something went wrong with that request. Please try again.