Skip to content

Commit ecf109b

Browse files
committed
bugfix -d param
1 parent 671b16d commit ecf109b

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

dist/cli.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1370,7 +1370,7 @@ Cannot specify password more than once`);
13701370
Missing difficulty`);
13711371
return 1;
13721372
}
1373-
if (~/^[1-9][0-9]*$/.test(d)) {
1373+
if (!/^[1-9][0-9]*$/.test(d)) {
13741374
printUsage("init");
13751375
console.error(`
13761376
Difficulty must be a positive integer`);

dist/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
textModeExtensions: [
2020
'txt', 'md', 'markdown', 'js', 'ts', 'tsx', 'jsx', 'c', 'h', 'cpp', 'hpp', 'java', 'py', 'rb',
2121
'go', 'rs', 'php', 'html', 'htm', 'css', 'json', 'xml', 'yml', 'yaml', 'sh', 'bat', 'fish',
22-
'csv'
22+
'csv', 'bas'
2323
],
2424
// initial wrapping mode when previewing a text file
2525
wrapText: false,

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "staticvault",
3-
"version": "1.1.3",
3+
"version": "1.1.4",
44
"description": "Encrypt, host, and share files on a static website",
55
"author": "velipso",
66
"license": "0BSD",

src/cli.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -481,7 +481,7 @@ async function cmdInit(args: string[]): Promise<number> {
481481
console.error(`\nMissing difficulty`);
482482
return 1;
483483
}
484-
if (~/^[1-9][0-9]*$/.test(d)) {
484+
if (!/^[1-9][0-9]*$/.test(d)) {
485485
printUsage('init');
486486
console.error(`\nDifficulty must be a positive integer`);
487487
return 1;

0 commit comments

Comments
 (0)