Revision: 29356
http://sourceforge.net/p/bibdesk/svn/29356
Author: hofman
Date: 2025-07-24 16:02:33 +0000 (Thu, 24 Jul 2025)
Log Message:
-----------
early check on length
Modified Paths:
--------------
trunk/bibdesk/BibDocument_UI.m
Modified: trunk/bibdesk/BibDocument_UI.m
===================================================================
--- trunk/bibdesk/BibDocument_UI.m 2025-07-24 16:01:03 UTC (rev 29355)
+++ trunk/bibdesk/BibDocument_UI.m 2025-07-24 16:02:33 UTC (rev 29356)
@@ -1478,7 +1478,7 @@
for (NSString *field in citeFields) {
NSString *value = [aPub valueOfField:field inherit:NO];
// value may be nil, so check before calling rangeOfString:
- if (nil != value) {
+ if ([value length] >= [oldKey length]) {
NSRange range = [value rangeOfWord:oldKey
nonWordCharacters:invalidSet ptions:NSCaseInsensitiveSearch];
if (range.location != NSNotFound) {
NSMutableString *tmpString = [value mutableCopy];
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit