Skip to content

Commit

Permalink
Change docid prefix
Browse files Browse the repository at this point in the history
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
  • Loading branch information
pasin committed Apr 15, 2015
1 parent 4cf8324 commit 611dca4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/CBLMisc.m
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 611dca4

Please sign in to comment.