Skip to content

Commit

Permalink
better regex
Browse files Browse the repository at this point in the history
  • Loading branch information
Crashillo committed Apr 4, 2024
1 parent 36e44ef commit 13c822a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/views/decidim/extra_user_fields/_profile_form.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<%
# TODO: move wherever it takes
def telephone_pattern
"^(\\+34)?[0-9]{9}$"
"^(\\+34)?[0-9 ]{9,12}$"
end

def telephone_placeholder
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<%
# TODO: move wherever it takes
def telephone_pattern
"^(\\+34)?[0-9]{9}$"
"^(\\+34)?[0-9 ]{9,12}$"
end

def telephone_placeholder
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<%
# TODO: move wherever it takes
def telephone_pattern
"^(\\+34)?[0-9]{9}$"
"^(\\+34)?[0-9 ]{9,12}$"
end

def telephone_placeholder
Expand Down

0 comments on commit 13c822a

Please sign in to comment.