From 611dca4a39705303dd13a81605bd6ceeeae8533d Mon Sep 17 00:00:00 2001 From: Pasin Suriyentrakorn Date: Wed, 15 Apr 2015 11:53:51 -0700 Subject: [PATCH] Change docid prefix Change docid prefix from '!' to '-'. Using '!' doesn't work with sync function for the case of using the docid to construct a channel name. Sync gateway doesn't allow '!' as part of the channel name. #661 --- Source/CBLMisc.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/CBLMisc.m b/Source/CBLMisc.m index 6023480f8..09f87572b 100644 --- a/Source/CBLMisc.m +++ b/Source/CBLMisc.m @@ -99,7 +99,7 @@ BOOL CBLWithStringBytes(UU NSString* str, void (^block)(const char*, size_t)) { [uuid replaceOccurrencesOfString: @"+" withString: @"-" options: 0 range: NSMakeRange(0, 22)]; // prefix a '!' to make it more clear where this string came from and prevent having a leading // '_' character: - [uuid insertString: @"!" atIndex: 0]; + [uuid insertString: @"-" atIndex: 0]; return uuid; }