From 5479b5acb66aa002ed9b12a334ce17f62d7be6ea Mon Sep 17 00:00:00 2001 From: Gaurav Vaidya Date: Thu, 17 Jan 2019 19:25:28 -0500 Subject: [PATCH] Fixed code for naming '_as_owl.json' file. --- test/test_phyx.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test_phyx.js b/test/test_phyx.js index 051263f..b32f83f 100644 --- a/test/test_phyx.js +++ b/test/test_phyx.js @@ -80,7 +80,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) {