Skip to content

Commit

Permalink
fix regex
Browse files Browse the repository at this point in the history
  • Loading branch information
alainm23 committed Oct 15, 2024
1 parent a1fd023 commit ea20164
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Views/Form.vala
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public class Views.Form : Adw.Bin {
Regex? identifier_regex = null;
try {
project_name_regex = new Regex ("^[a-z]+[a-z0-9]*$");
identifier_regex = new Regex ("^[a-z]+\\.[a-z0-9]+(\\.[a-z0-9]+)*$");
identifier_regex = new Regex ("^[a-z]+\\.[a-z0-9_]+(\\.[a-z0-9_]+)*$");
} catch (Error e) {
critical (e.message);
}
Expand Down

0 comments on commit ea20164

Please sign in to comment.