Skip to content

Commit

Permalink
Add missing semi-colon
Browse files Browse the repository at this point in the history
  • Loading branch information
borota committed Dec 30, 2017
1 parent 978f65d commit a6c091c
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 8 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Following bundles are available:
libraries and applications

The package could also be downloaded directly from:
[https://registry.npmjs.org/sedra-parse/-/sedra-parse-1.1.1.tgz](https://registry.npmjs.org/sedra-parse/-/sedra-parse-1.1.1.tgz)
[https://registry.npmjs.org/sedra-parse/-/sedra-parse-1.1.2.tgz](https://registry.npmjs.org/sedra-parse/-/sedra-parse-1.1.2.tgz)

## More information

Expand Down
2 changes: 1 addition & 1 deletion doc/readme.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Following bundles are available:
libraries and applications

The package could also be downloaded directly from:
[https://registry.npmjs.org/sedra-parse/-/sedra-parse-1.1.1.tgz](https://registry.npmjs.org/sedra-parse/-/sedra-parse-1.1.1.tgz)
[https://registry.npmjs.org/sedra-parse/-/sedra-parse-1.1.2.tgz](https://registry.npmjs.org/sedra-parse/-/sedra-parse-1.1.2.tgz)

## More information

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sedra-parse",
"version": "1.1.1",
"version": "1.1.2",
"description": "Parse Sedra 3 text database records and build JavaScript representation",
"main": "build/sedra-parse.js",
"mainMin": "build/sedra-parse.min.js",
Expand Down
2 changes: 1 addition & 1 deletion rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const isDev = process.env.BUILD === 'dev';
const banner = isProduction
? '/**\n' +
'* @file Parse Sedra 3 text database records and return their JavaScript representation\n' +
'* @version 1.1.1\n' +
'* @version 1.1.2\n' +
'* @author Greg Borota\n' +
'* @copyright (c) 2017 Greg Borota.\n' +
'* @license MIT\n' +
Expand Down
7 changes: 5 additions & 2 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -271,9 +271,12 @@ const parseUbs = content => {

return Object.freeze(
Object.create(null, {
ubs: { value: JSON.stringify(map).replace(/"/g, ''), enumerable: true },
ubs: {
value: `${JSON.stringify(map).replace(/"/g, '')};`,
enumerable: true
},
reference: {
value: JSON.stringify(reference).replace(/"/g, ''),
value: `${JSON.stringify(reference).replace(/"/g, '')};`,
enumerable: true
}
})
Expand Down
4 changes: 2 additions & 2 deletions test/index_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -239,10 +239,10 @@ describe('BFBS/UBS', () => {
'0:-32617,541601519,33555871,-32752\r\n'
);
let expected =
'{52:{1:{1:[10762,9144,9568,12523,3245,4227,3245,167],2:[165],verses:2,words:9,rollupChapters:0,rollupVerses:0,rollupWords:0},chapters:1,verses:2,words:9,rollupBooks:0,rollupChapters:0,rollupVerses:0,rollupWords:0},54:{16:{15:[null,null,null,null,null,null,null,13487,18101,3230,1428,905,4405,8686,10960,11406,19739,2663,1439],verses:1,words:12,rollupChapters:1,rollupVerses:2,rollupWords:9},chapters:1,verses:1,words:12,rollupBooks:1,rollupChapters:1,rollupVerses:2,rollupWords:9},books:2,chapters:2,verses:3,words:21}';
'{52:{1:{1:[10762,9144,9568,12523,3245,4227,3245,167],2:[165],verses:2,words:9,rollupChapters:0,rollupVerses:0,rollupWords:0},chapters:1,verses:2,words:9,rollupBooks:0,rollupChapters:0,rollupVerses:0,rollupWords:0},54:{16:{15:[null,null,null,null,null,null,null,13487,18101,3230,1428,905,4405,8686,10960,11406,19739,2663,1439],verses:1,words:12,rollupChapters:1,rollupVerses:2,rollupWords:9},chapters:1,verses:1,words:12,rollupBooks:1,rollupChapters:1,rollupVerses:2,rollupWords:9},books:2,chapters:2,verses:3,words:21};';
strictEqual(js.ubs, expected, 'parsed Ubs');

expected = '[[52,1,0],[52,1,1],[52,1,2],[54,16,0],[54,16,15]]';
expected = '[[52,1,0],[52,1,1],[52,1,2],[54,16,0],[54,16,15]];';
strictEqual(js.reference, expected, 'parsed Reference');
});
});

0 comments on commit a6c091c

Please sign in to comment.