Fix "url.match is not a function" error with integers in URL field
This commit is contained in:
parent
b1e9a83f4e
commit
24cd01e16f
|
@ -553,7 +553,7 @@
|
||||||
<body>
|
<body>
|
||||||
<![CDATA[
|
<![CDATA[
|
||||||
var url = this.item.getField('url');
|
var url = this.item.getField('url');
|
||||||
return url && !url.match(/^file:|^zotero:/);
|
return url && url.match && !url.match(/^file:|^zotero:/);
|
||||||
]]>
|
]]>
|
||||||
</body>
|
</body>
|
||||||
</method>
|
</method>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user