Skip to content

Commit

Permalink
Added RexExp description
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandraRamanenka authored May 20, 2024
1 parent 3189d8e commit cd3efea
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/WebformBuilder.js
Original file line number Diff line number Diff line change
Expand Up @@ -1265,6 +1265,7 @@ export default class WebformBuilder extends Component {
highlightInvalidComponents() {
const repeatablePaths = this.findRepeatablePaths();
let hasInvalidComponents = false;
// Matches anything expect letters and '_' at the begginnig of the key and anything except of letters, numbers, '-', '.' and '_' in the rest of the key
const badCharacters = /^[^A-Za-z_]+|[^A-Za-z0-9\-._]+/g;

this.webform.everyComponent((comp) => {
Expand Down

0 comments on commit cd3efea

Please sign in to comment.