Skip to content

Commit

Permalink
Fixed #1245
Browse files Browse the repository at this point in the history
  • Loading branch information
oscargus committed Apr 19, 2016
1 parent 094f11d commit 0e9b2e3
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 @@ -22,6 +22,7 @@ to [sourceforge feature requests](https://sourceforge.net/p/jabref/features/) by
- Added integrity check detecting HTML-encoded characters

### Fixed
- Fixed [1245](https://github.com/JabRef/jabref/issues/1245): Empty jstyle properties can now be specified as ""

### Removed

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 0e9b2e3

Please # to comment.