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

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Ng <chrng8@gmail.com>2022-04-06 21:46:32 +0300
committerChristopher Ng <chrng8@gmail.com>2022-04-07 03:24:48 +0300
commit3fb420115d8754208498c374170ad6839029392d (patch)
treea463148d1d8ed75b3bdffbedcb0fbe6ab7a8982a /apps/settings
parent9644b7e505dc90a1e683f77ad38dc6dc4e90fa2f (diff)
Improve strictness of account file regex
Signed-off-by: Christopher Ng <chrng8@gmail.com>
Diffstat (limited to 'apps/settings')
-rw-r--r--apps/settings/tests/UserMigration/AccountMigratorTest.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/settings/tests/UserMigration/AccountMigratorTest.php b/apps/settings/tests/UserMigration/AccountMigratorTest.php
index c668bb9e6af..1ad68dbd341 100644
--- a/apps/settings/tests/UserMigration/AccountMigratorTest.php
+++ b/apps/settings/tests/UserMigration/AccountMigratorTest.php
@@ -58,7 +58,7 @@ class AccountMigratorTest extends TestCase {
private const ASSETS_DIR = __DIR__ . '/assets/';
- private const REGEX_ACCOUNT_FILE = '/' . Application::APP_ID . '\/' . '[a-z]+\.json' . '/';
+ private const REGEX_ACCOUNT_FILE = '/^' . Application::APP_ID . '\/' . '[a-z]+\.json' . '$/';
protected function setUp(): void {
$app = new App(Application::APP_ID);