Escape backslash

This commit is contained in:
Simon Kornblith 2013-03-07 19:47:57 -05:00
parent acd6d38a1e
commit d291084af6

View file

@ -202,7 +202,7 @@ Zotero.Duplicates.prototype._findDuplicates = function () {
// DOI
var sql = "SELECT itemID, value FROM items JOIN itemData USING (itemID) "
+ "JOIN itemDataValues USING (valueID) "
+ "WHERE libraryID=? AND fieldID=? AND REGEXP('^10\.', value) "
+ "WHERE libraryID=? AND fieldID=? AND REGEXP('^10\\.', value) "
+ "AND itemID NOT IN (SELECT itemID FROM deletedItems) "
+ "ORDER BY value";
var rows = Zotero.DB.query(sql, [this._libraryID, Zotero.ItemFields.getID('DOI')]);