Skip to content

Commit 3bbdda8

Browse files
authored
fix issue with multiple nulls in wos (#42)
* Allow null multiple times at the beginning of a line * Update version
1 parent 40e5869 commit 3bbdda8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/bibx/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"read_wos",
2929
]
3030

31-
__version__ = "0.6.2"
31+
__version__ = "0.6.3"
3232

3333

3434
def query_openalex(

src/bibx/builders/wos.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ class WosCollectionBuilder(CollectionBuilder):
6161
"""Builder for collections of articles from Web of Science (WoS) ISI files."""
6262

6363
ISI_LINE_PATTERN = re.compile(
64-
r"^(null|.)?((?P<field>[A-Z0-9]{2})| )( (?P<value>.*))?$"
64+
r"^((null)+|.)?((?P<field>[A-Z0-9]{2})| )( (?P<value>.*))?$"
6565
)
6666
ISI_CITATION_PATTERN = re.compile(
6767
r"""^(?P<AU>[^,]+),[ ] # First author

0 commit comments

Comments
 (0)