Don't break Zotero

This commit is contained in:
Dan Stillman 2017-04-13 00:21:16 -04:00
parent 6d18b46165
commit b7aab8b8d2

View file

@ -123,7 +123,7 @@ Zotero.URI = new function () {
* @return {Zotero.Library|false} * @return {Zotero.Library|false}
*/ */
this.getPathLibrary = function (path) { this.getPathLibrary = function (path) {
let matches = path.match(/^\/\/?users\/(\d+)); let matches = path.match(/^\/\/?users\/(\d+)/);
if (matches) { if (matches) {
let userID = matches[1]; let userID = matches[1];
let currentUserID = Zotero.Users.getCurrentUserID(); let currentUserID = Zotero.Users.getCurrentUserID();