~ubuntu-branches/ubuntu/wily/jabref/wily-proposed

« back to all changes in this revision

Viewing changes to src/java/net/sf/jabref/Util.java

  • Committer: Package Import Robot
  • Author(s): gregor herrmann
  • Date: 2013-06-21 18:52:15 UTC
  • mfrom: (1.1.13)
  • Revision ID: package-import@ubuntu.com-20130621185215-qk0m6nt85er099vy
Tags: 2.10~beta2+ds-1
* New upstream release.
* Drop jcombobox-parameter.patch, merged upstream.
* Refresh debian_libs.patch (offset).
* Update filenames in debian/jabref.{install,links}.
* debian/copyright: add information about third-party file.
* Extend debian/jabref.bug-presubj a bit.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3046
3046
    }
3047
3047
    
3048
3048
    // DOI-regexp provided by http://stackoverflow.com/a/10324802/873282
3049
 
    private static final String REGEXP_PLAINDOI = "\\b(10[.][0-9]{4,}(?:[.][0-9]+)*/(?:(?![\"&\\'<>])\\S)+)\\b";
 
3049
    // Some DOI's are not caught by the regexp in the above link, i.e. 10.1002/(SICI)1522-2594(199911)42:5<952::AID-MRM16>3.0.CO;2-S
 
3050
    // Removed <> from non-permitted characters
 
3051
    private static final String REGEXP_PLAINDOI = "\\b(10[.][0-9]{4,}(?:[.][0-9]+)*/(?:(?![\"&\\'])\\S)+)\\b";
3050
3052
    private static final String REGEXP_DOI_WITH_HTTP_PREFIX = "http[s]?://[^\\s]*?" + REGEXP_PLAINDOI;
3051
3053
    private static final Pattern PATTERN_PLAINDOI = Pattern.compile(REGEXP_PLAINDOI);
3052
3054