Skip to content

Commit

Permalink
Merge pull request #99 from chatcannon/mdbtools-1-0
Browse files Browse the repository at this point in the history
Update regular expression for mdbtools 1.0 output
  • Loading branch information
chatcannon authored Feb 3, 2024
2 parents 0267b8b + dbd0195 commit aa0aee6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ jobs:

pytest:
name: Run Python unit tests
# Note that 20.04 is currently required until galvani supports mdbtools>=1.0.
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04

strategy:
fail-fast: false
Expand Down
3 changes: 2 additions & 1 deletion galvani/res2sqlite.py
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,8 @@
def mdb_get_data_text(s3db, filename, table):
print("Reading %s..." % table)
insert_pattern = re.compile(
r'INSERT INTO "\w+" \([^)]+?\) VALUES \(("[^"]*"|[^")])+?\);\n', re.IGNORECASE
r"""INSERT INTO "\w+" \([^)]+?\) VALUES (\((('[^']*')|"[^"]*"|[^')])+?\),?\s*)+;\n""",
re.IGNORECASE,
)
try:
# Initialize values to avoid NameError in except clause
Expand Down

0 comments on commit aa0aee6

Please sign in to comment.