Merge pull request #1622 from ismailnurudeen/fix/deleted_numbers_import
fix: trim whitespace and newline from imported numbers.
This commit is contained in:
commit
3229afbf09
1 changed files with 1 additions and 1 deletions
|
@ -17,7 +17,7 @@ class BlockedNumbersImporter(
|
|||
return try {
|
||||
val inputStream = File(path).inputStream()
|
||||
val numbers = inputStream.bufferedReader().use {
|
||||
val content = it.readText().split(BLOCKED_NUMBERS_EXPORT_DELIMITER)
|
||||
val content = it.readText().trimEnd().split(BLOCKED_NUMBERS_EXPORT_DELIMITER)
|
||||
content.filter { text -> PhoneNumberUtils.isGlobalPhoneNumber(text) }
|
||||
}
|
||||
if (numbers.isNotEmpty()) {
|
||||
|
|
Loading…
Reference in a new issue