Skip to content

Commit

Permalink
gjspack: Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sonnyp committed Jan 13, 2023
1 parent fddc238 commit c1309d4
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions gjspack/src/gjspack.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,8 @@ function getBundableImport(source) {
export function getAssertType(assert) {
const normalized = assert
.replace(/\s/g, "")
.replace(/"/g, "")
.replace(/'/g, "")
.replace(/,/g, "");
return normalized.match(/^{type:(.+)}$/)?.[1] || null;
.replace(/'/g, '"');
return normalized.match(/type:"([^"]+)"/)?.[1] || null;
}

export function getImportName(statement) {
Expand Down

0 comments on commit c1309d4

Please sign in to comment.