Skip to content

Commit

Permalink
Fixed code for naming '_as_owl.json' file.
Browse files Browse the repository at this point in the history
  • Loading branch information
gaurav committed Jan 18, 2019
1 parent 3e50fa9 commit 6c94214
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/test_phyx.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ describe('Test PHYX files in repository', function() {

// Let's write the JSON-LD into a file for debugging.
fs.writeFileSync(
filename.replace('paper.json', 'paper_as_owl.json'),
filename.replace(/.json$/, '_as_owl.json'),
jsonld
);
} catch(ex) {
Expand Down

0 comments on commit 6c94214

Please sign in to comment.