Skip to content

Commit 9654a8e

Browse files
Fix bug #4957 (#4961)
1 parent f4414b1 commit 9654a8e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

app/src/main/java/fr/free/nrw/commons/description/DescriptionEditActivity.kt

+1-2
Original file line numberDiff line numberDiff line change
@@ -154,8 +154,7 @@ class DescriptionEditActivity : BaseActivity(), UploadMediaDetailAdapter.EventLi
154154
buffer.append("}}, ")
155155
}
156156
}
157-
buffer.deleteCharAt(buffer.length - 1)
158-
buffer.deleteCharAt(buffer.length - 1)
157+
buffer.replace(", $".toRegex(), "")
159158
buffer.append(descriptionEnd)
160159
}
161160
val returningIntent = Intent()

0 commit comments

Comments
 (0)