Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/text.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJulien Veyssier <eneiluj@posteo.net>2022-05-10 14:59:05 +0300
committernextcloud-command <nextcloud-command@users.noreply.github.com>2022-05-10 15:13:42 +0300
commit91d17e58e1f37bf996ede2b7fbae2acc36a73fbc (patch)
tree70ce1da2784ad8a30280c13b61b4d499acc35f1a /tests
parent662a8aba4ed60fc14aeb36c65efd78289ccc4204 (diff)
fix attachment link target generation, this also fixes cleanup when there are parenthesis in the file names
Signed-off-by: Julien Veyssier <eneiluj@posteo.net> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/TextTest.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/TextTest.php b/tests/TextTest.php
index 161446b8c..bfa4251fb 100644
--- a/tests/TextTest.php
+++ b/tests/TextTest.php
@@ -15,6 +15,11 @@ class TextTest extends \PHPUnit\Framework\TestCase {
public function testGetAttachmentNamesFromContent() {
$contentNames = [
'aaa.png',
+ 'aaa (2).png',
+ 'aaa 2).png',
+ 'aaa (2.png',
+ 'aaa ((2.png',
+ 'aaa 2)).png',
'a[a]a.png',
'a(a)a.png',
'a](a.png',