UploadMediaDetailInputFilter: added pattern to identify colon (#5451)

Added hex code of colon for MediaDetailInputFilter and updated test for it.
This commit is contained in:
Rohit Verma 2024-01-18 05:53:50 +05:30 committed by GitHub
parent 1aa07f9368
commit 11e7b1cde7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

View file

@ -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(), "")