mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-27 21:03:54 +01:00
UploadMediaDetailInputFilter: added pattern to identify colon (#5451)
Added hex code of colon for MediaDetailInputFilter and updated test for it.
This commit is contained in:
parent
1aa07f9368
commit
11e7b1cde7
2 changed files with 2 additions and 1 deletions
|
|
@ -61,7 +61,7 @@ class UploadMediaDetailInputFilterTest {
|
|||
builder.filters = arrayOf(UploadMediaDetailInputFilter())
|
||||
|
||||
//Sample of control characters
|
||||
val tests = intArrayOf(0x00, 0x08, 0x10, 0x18, 0x1F, 0x7F)
|
||||
val tests = intArrayOf(0x00, 0x08, 0x10, 0x18, 0x1F, 0x7F, 0x3A)
|
||||
for (test: Int in tests) {
|
||||
builder.insert(0, String(Character.toChars(test)))
|
||||
Assert.assertEquals(builder.toString(), "")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue