Skip to content

Commit

Permalink
metadata attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
Abhitocode committed Dec 23, 2024
1 parent c690d46 commit 6644d2b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public void setParentWidget(final MetaDataEditorWidgetView.Presenter parentWidge

@PostConstruct
public void init() {
attribute.setRegExp(StringUtils.ALPHA_NUM_REGEXP,
attribute.setRegExp(StringUtils.ALPHA_NUM_UNDERSCORE_DOT_REGEXP,
StunnerFormsClientFieldsConstants.CONSTANTS.Removed_invalid_characters_from_name(),
StunnerFormsClientFieldsConstants.CONSTANTS.Invalid_character_in_name());

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
public class StringUtils {

public static final String ALPHA_NUM_REGEXP = "^[a-zA-Z0-9\\-\\_]*$";
public static final String ALPHA_NUM_UNDERSCORE_DOT_REGEXP = "^[a-zA-Z0-9\\-\\_\\.]*$";
public static final String ALPHA_NUM_UNDERSCORE_DOT_GT_LT_REGEXP = "^[a-zA-Z0-9<>,\\_\\.]*$";
public static final String ALPHA_NUM_SPACE_REGEXP = "^[a-zA-Z0-9\\-\\_\\ ]*$";
public static final RegExp EXPRESSION = RegExp.compile(Patterns.EXPRESSION);
Expand Down

0 comments on commit 6644d2b

Please sign in to comment.