Skip to content

Commit

Permalink
formscripting: prohibit js variable names starting with a digit
Browse files Browse the repository at this point in the history
  • Loading branch information
rkrenn committed Dec 14, 2024
1 parent 0f0176d commit 0d77797
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ public class TrialServiceImpl
extends TrialServiceBase {

private final static String SHUFFLE_SEED_RANDOM_ALGORITHM = CoreUtil.RANDOM_ALGORITHM;
private final static java.util.regex.Pattern JS_VARIABLE_NAME_REGEXP = Pattern.compile("^[A-Za-z0-9_]+$");
private final static java.util.regex.Pattern JS_VARIABLE_NAME_REGEXP = Pattern.compile("^[A-Za-z_][A-Za-z0-9_]*$");
private final static int PROBAND_ALIAS_FORMAT_MAX_ALIAS_0BASED_INDEX = 6;
private final static int PROBAND_ALIAS_FORMAT_MAX_ALIAS_1BASED_INDEX = 7;
private final static int PROBAND_ALIAS_FORMAT_PROBAND_COUNT_0BASED_INDEX = 8;
Expand Down

0 comments on commit 0d77797

Please sign in to comment.