Revision: 17973
          http://bibdesk.svn.sourceforge.net/bibdesk/?rev=17973&view=rev
Author:   hofman
Date:     2011-06-26 21:07:20 +0000 (Sun, 26 Jun 2011)

Log Message:
-----------
allow ";" in cite key in regex for sniffing bibtex

Modified Paths:
--------------
    trunk/bibdesk/BDSKBibTeXParser.m

Modified: trunk/bibdesk/BDSKBibTeXParser.m
===================================================================
--- trunk/bibdesk/BDSKBibTeXParser.m    2011-06-26 06:35:20 UTC (rev 17972)
+++ trunk/bibdesk/BDSKBibTeXParser.m    2011-06-26 21:07:20 UTC (rev 17973)
@@ -141,13 +141,13 @@
     
     AGRegex *btRegex = [[AGRegex alloc] initWithPattern:/* type of item */ 
@"^@[[:alpha:]]+[ \\t]*[{(]" 
                                                         /* spaces       */ @"[ 
\\n\\r\\t]*" 
-                                                        /* cite key     */ 
@"[a-zA-Z0-9\\.,:/*!&$^_-]+?" 
+                                                        /* cite key     */ 
@"[a-zA-Z0-9\\.,:;/*!&$^_-]+?" 
                                                         /* spaces       */ @"[ 
\\n\\r\\t]*," 
                                                 options:AGRegexMultiline];
     
     // AGRegex doesn't recognize \r as a $ (bug #1420791), but normalizing is 
slow; use \r\n in regex instead
     BOOL found = ([btRegex findInString:stringWithoutComments(string)] != nil);
-    [btRegex release];
+    [btRegex release];NSLog(@"%i",found);
     return found;
 }
 


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit

Reply via email to