Skip to content

Commit

Permalink
fix bug in title regex introduced by last release. Thanks to @autosquid.
Browse files Browse the repository at this point in the history
  • Loading branch information
daeh committed Jan 19, 2023
1 parent 758dac4 commit 8f8c82f
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Opens an existing markdown note in [Obsidian](https://obsidian.md), [logseq](htt
- Open Zotero (version 6.x)
- Go to `Tools -> Add-ons`
- `Install Add-on From File`
- Choose the file `MarkDBConnect-0.0.22.xpi`
- Choose the file `MarkDBConnect-0.0.23.xpi`
- Restart Zotero

## Setup
Expand Down
2 changes: 1 addition & 1 deletion bin/build.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/sh

version='0.0.22'
version='0.0.23'

rm -f MarkDBConnect-${version}.xpi
zip -r MarkDBConnect-${version}.xpi chrome/* defaults/* chrome.manifest install.rdf -x "*.DS_Store"
Expand Down
2 changes: 1 addition & 1 deletion chrome/content/overlay.xul
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0"?>
<!-- <?xml-stylesheet href="chrome://zotfile/skin/overlay.css" type="text/css"?> -->
<!-- <?xml-stylesheet href="chrome://markdbconnect/skin/overlay.css" type="text/css"?> -->
<!DOCTYPE overlay SYSTEM "chrome://markdbconnect/locale/overlay.dtd">

<overlay
Expand Down
4 changes: 2 additions & 2 deletions chrome/content/scripts/mdbconnect.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ if (typeof Zotero === 'undefined') {


Zotero.MarkDBconnect = {
version: '0.0.22',
version: '0.0.23',
folderSep: null,
cleanrun: true,
suppressNotifications: false,
Expand Down Expand Up @@ -549,7 +549,7 @@ Zotero.MarkDBconnect = {
/// pattern to match citekey in MD file name
let re_title;
if (filefilterstrategy === 'default') {
re_title = new RegExp(/^@([^\s]+)\.md$/, 'i');
re_title = new RegExp(/^@([^\s]+).*\.md$/, 'i');
} else {
re_title = RegExp(this._getParam_filepattern(), 'i');
}
Expand Down
2 changes: 1 addition & 1 deletion install.rdf
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<Description about="urn:mozilla:install-manifest">
<em:id>[email protected]</em:id>
<em:name>MarkDBConnect</em:name>
<em:version>0.0.22</em:version>
<em:version>0.0.23</em:version>
<em:type>2</em:type>
<em:creator>Dae Houlihan</em:creator>
<em:description>Add a tag to Zotero items that have a external note.</em:description>
Expand Down
4 changes: 2 additions & 2 deletions update.rdf
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@
<rdf:Seq>
<rdf:li>
<rdf:Description>
<em:version>0.0.22</em:version>
<em:version>0.0.23</em:version>
<em:targetApplication>
<rdf:Description>
<em:id>[email protected]</em:id>
<em:minVersion>5.0.0</em:minVersion>
<em:maxVersion>6.0.*</em:maxVersion>
<em:updateLink>https://github.com/daeh/zotero-markdb-connect/releases/download/v0.0.22/MarkDBConnect-0.0.22.xpi</em:updateLink>
<em:updateLink>https://github.com/daeh/zotero-markdb-connect/releases/download/v0.0.23/MarkDBConnect-0.0.23.xpi</em:updateLink>
</rdf:Description>
</em:targetApplication>

Expand Down

0 comments on commit 8f8c82f

Please sign in to comment.