Skip to content

Commit

Permalink
fixes #2377
Browse files Browse the repository at this point in the history
  • Loading branch information
retorquere committed Jan 13, 2023
1 parent 8c637a1 commit 6b0e3e2
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 1 deletion.
1 change: 1 addition & 0 deletions test/features/import.feature
Expand Up @@ -64,6 +64,7 @@ Feature: Import

Examples:
| file | references |
| Import from Clipboard stopped working #2377 | 1 |
| Child items that use the crossref field do not have their parent fields imported #2373 | 3 |
| accessDate must be ISO date #2376 | 2 |
| Dealing with base64-encoded paths from BibDesk #2374 | 3 |
Expand Down
@@ -0,0 +1 @@
@techreport{TBD, title = {Report number 2PTE3 - 3D transport model under operative regime}, , number = {2PTE3}, institution = {{Research Institute X}}, url = {https://website.org/?uid=2PTE3}, Accessed = {2023-01-13}}
@@ -0,0 +1,28 @@
{
"config": {
"id": "36a3b0b5-bad0-4a04-b79b-441c7cef77db",
"label": "BetterBibTeX JSON",
"options": {
"exportNotes": true
},
"preferences": {
"citekeyFormat": "auth + year",
"citekeyFormatBackup": "auth + year"
}
},
"items": [
{
"citationKey": "TBD",
"extra": [
"Citation Key: TBD",
"tex.accessed: 2023-01-13"
],
"itemID": 1,
"itemType": "report",
"number": "2PTE3",
"publisher": "Research Institute X",
"title": "Report number 2PTE3 - 3D transport model under operative regime",
"url": "https://website.org/?uid=2PTE3"
}
]
}
2 changes: 1 addition & 1 deletion util/testcase.py
Expand Up @@ -69,7 +69,7 @@
g = Github(os.environ['GITHUB_TOKEN'])
repo = g.get_repo('retorquere/zotero-better-bibtex')
issue = repo.get_issue(int(args.issue))
args.title = re.sub(r'^\[[^\]]+\]', '', issue.title).strip()
args.title = re.sub(r'^\[[^\]]+\]\s*:', '', issue.title).strip()
args.title = sanitize_filename(f'{args.title} #{issue.number}'.strip())

# clean lib before putting it in place
Expand Down

0 comments on commit 6b0e3e2

Please sign in to comment.