Skip to content

Commit

Permalink
Address PR comment
Browse files Browse the repository at this point in the history
  • Loading branch information
msasikanth committed Sep 20, 2023
1 parent f092e91 commit 514feab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import org.hisp.dhis.mobile.ui.designsystem.resource.provideDHIS2Icon
import org.hisp.dhis.mobile.ui.designsystem.resource.provideStringResource

/**
* DHIS2 Input Phone Number. Wraps DHIS · [BasicTextInput].
* DHIS2 Input Phone Number
* Input that allows only numeric values for entering phone number.
*
* @param title controls the text to be shown for the title
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,5 +71,5 @@ enum class RegExValidations(val regex: Regex) {
PERCENTAGE("^([1-9]|[1-9][0-9]|100)\$".toRegex()),
POSITIVE_INTEGER("^(?!0)\\d*".toRegex()),
POSITIVE_INTEGER_OR_ZERO("^(0|[1-9]\\d*)\$".toRegex()),
PHONE_NUMBER("^[+0-9]+$".toRegex()),
PHONE_NUMBER("^[+0-9-()]+$".toRegex()),
}

0 comments on commit 514feab

Please sign in to comment.