Skip to content
Snippets Groups Projects
Commit b8d02bf0 authored by Angie Byron's avatar Angie Byron
Browse files

#1012914 by dww: Fix regex in Updater classes.

parent 94315d70
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -39,7 +39,7 @@ public function isInstalled() {
}
public static function canUpdateDirectory($directory) {
if (file_scan_directory($directory, '/.*\.module/')) {
if (file_scan_directory($directory, '/.*\.module$/')) {
return TRUE;
}
return FALSE;
......@@ -121,7 +121,7 @@ public function isInstalled() {
static function canUpdateDirectory($directory) {
// This is a lousy test, but don't know how else to confirm it is a theme.
if (file_scan_directory($directory, '/.*\.module/')) {
if (file_scan_directory($directory, '/.*\.module$/')) {
return FALSE;
}
return TRUE;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment