Recognize Windows network shares on file attachment import
Related to zotero/translators#735
This commit is contained in:
parent
6cf597a08f
commit
f2a887fd24
1 changed files with 2 additions and 1 deletions
|
@ -329,7 +329,8 @@ Zotero.Translate.ItemSaver.prototype = {
|
|||
var file;
|
||||
|
||||
// First, try to parse as absolute path
|
||||
if(((/[a-zA-Z]:\\/.test(path) && Zotero.isWin) || (path[0] === "/" && !Zotero.isWin))
|
||||
if(((/^[a-zA-Z]:\\|^\\\\/.test(path) && Zotero.isWin) // Paths starting with drive letter or network shares starting with \\
|
||||
|| (path[0] === "/" && !Zotero.isWin))
|
||||
&& (file = this._parseAbsolutePath(path))) {
|
||||
Zotero.debug("Translate: Got file "+path+" as absolute path");
|
||||
return file;
|
||||
|
|
Loading…
Add table
Reference in a new issue