N°7331 - Remove "example" (single) as well

This commit is contained in:
Molkobain
2024-03-11 16:42:16 +01:00
parent 43a8152de1
commit 700c4d0b04
6 changed files with 4 additions and 170 deletions

View File

@@ -31,7 +31,7 @@ abstract class AbstractHook
* @since 3.2.0 N°7175 update regexp to also remove `examples` folder
* @link https://www.regular-expressions.info/alternation.html RegExp alternation reference
*/
public const QUESTIONNABLE_FOLDER_REGEXP = '/^(tests?|examples|htdocs?|demos?|external)$/i';
public const QUESTIONNABLE_FOLDER_REGEXP = '/^(tests?|examples?|htdocs?|demos?|external)$/i';
/**
* @return string Absolute path to the root folder of the dependencies (composer, npm, ...)

View File

@@ -81,6 +81,7 @@ class iTopNPM extends AbstractHook
$APPROOT_WITH_SLASHES . '/select/test',
$APPROOT_WITH_SLASHES . '/selectize-plugin-a11y/examples',
$APPROOT_WITH_SLASHES . '/tiny-emitter/test',
$APPROOT_WITH_SLASHES . '/toastify-js/example',
];
}
}