Skip to content

Commit

Permalink
Fixed JabRef#1245
Browse files Browse the repository at this point in the history
  • Loading branch information
oscargus committed Apr 22, 2016
1 parent f248162 commit 32b3e2c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ to [sourceforge feature requests](https://sourceforge.net/p/jabref/features/) by
- Fixed [#473](https://github.com/JabRef/jabref/issues/473): Values in an entry containing symbols like ' are now properly escaped for exporting to the database

- Fixed [#1234](https://github.com/JabRef/jabref/issues/1234): NPE when getting information from retrieved DOI
- Fixed [1245](https://github.com/JabRef/jabref/issues/1245): Empty jstyle properties can now be specified as ""

### Removed
- Removed possibility to export entries/databases to an `.sql` file, as the logic cannot easily use the correct escape logic
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ private void handlePropertiesLine(String line, Map<String, Object> map) {
if ((index > 0) && (index <= (line.length() - 1))) {
String propertyName = line.substring(0, index).trim();
String value = line.substring(index + 1);
if ((value.trim().length() > 2) && QUOTED.matcher(value.trim()).matches()) {
if ((value.trim().length() > 1) && QUOTED.matcher(value.trim()).matches()) {
value = value.trim().substring(1, value.trim().length() - 1);
}
Object toSet = value;
Expand Down

0 comments on commit 32b3e2c

Please # to comment.