Skip to content

Commit 3a88522

Browse files
committed
allow RPE values from 1 to 10
1 parent 039b135 commit 3a88522

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/componentes/journal/tokenizer.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -530,11 +530,11 @@ export const JLogTokenizer = config => {
530530
{
531531
const rpe = rpes[i];
532532

533-
if( rpe<6 || rpe>10 || (rpe != Math.floor(rpe) && rpe!=Math.floor(rpe)+0.5 ) )
533+
if( rpe<1 || rpe>10 || (rpe != Math.floor(rpe) && rpe!=Math.floor(rpe)+0.5 ) )
534534
{
535535
offset = rpeString.indexOf( rpe.toString() );
536536
length = rpe.toString().length;
537-
throw new Error("Invalid RPE. It must be a number between 6 and 10. And only a diference of 0.5 between each. Example: @ 6.5 | You wrote: "+rpe);
537+
throw new Error("Invalid RPE. It must be a number between 1 and 10. And only a diference of 0.5 between each. Example: @ 6.5 | You wrote: "+rpe);
538538
}
539539
}
540540

0 commit comments

Comments
 (0)