pf2e-sage-stats 0.2.3 → 0.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +2 -2
- package/package.json +1 -1
- package/src/index.ts +2 -2
package/dist/index.js
CHANGED
|
@@ -222,8 +222,8 @@ program.command('track')
|
|
|
222
222
|
});
|
|
223
223
|
while (true) {
|
|
224
224
|
yield new Promise((resolve) => setTimeout(resolve, 500));
|
|
225
|
-
const input = yield new Promise((resolve) => (rl.question('>', resolve)));
|
|
226
|
-
const hpmod = input.match(/([^\d+-]+)\s*([+-]?\d+)/);
|
|
225
|
+
const input = yield new Promise((resolve) => (rl.question('> ', resolve)));
|
|
226
|
+
const hpmod = input.match(/([^\d\s+-]+)\s*([+-]?\d+)/);
|
|
227
227
|
if (hpmod) {
|
|
228
228
|
const file = yield promises_1.default.readFile(argument, { encoding: 'utf-8' });
|
|
229
229
|
const tracker = (0, app_1.parseTracker)(file);
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -215,10 +215,10 @@ program.command('track')
|
|
|
215
215
|
await new Promise((resolve) => setTimeout(resolve, 500));
|
|
216
216
|
|
|
217
217
|
const input = await new Promise<string>((resolve) => (
|
|
218
|
-
rl.question('>', resolve)
|
|
218
|
+
rl.question('> ', resolve)
|
|
219
219
|
));
|
|
220
220
|
|
|
221
|
-
const hpmod = input.match(/([^\d+-]+)\s*([+-]?\d+)/);
|
|
221
|
+
const hpmod = input.match(/([^\d\s+-]+)\s*([+-]?\d+)/);
|
|
222
222
|
|
|
223
223
|
if (hpmod) {
|
|
224
224
|
const file = await fs.readFile(argument, { encoding: 'utf-8' });
|