Fix "url.match is not a function" error with integers in URL field

This commit is contained in:
Dan Stillman 2009-07-26 10:51:12 +00:00
parent b1e9a83f4e
commit 24cd01e16f

View file

@ -553,7 +553,7 @@
<body>
<![CDATA[
var url = this.item.getField('url');
return url && !url.match(/^file:|^zotero:/);
return url && url.match && !url.match(/^file:|^zotero:/);
]]>
</body>
</method>