mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 01:54:15 +00:00
[DURACOM-344] adapt patterns and example file, fix possible error from YAML
This commit is contained in:
@@ -629,10 +629,13 @@ function start() {
|
||||
* Check if SSR should be skipped for path
|
||||
*
|
||||
* @param path
|
||||
* @param excludePathRegexes
|
||||
* @param excludePathPattern
|
||||
*/
|
||||
function isExcludedFromSsr(path: string, excludePathRegexes: RegExp[]): boolean {
|
||||
return excludePathRegexes.some((regex) => regex.test(path));
|
||||
function isExcludedFromSsr(path: string, excludePathPattern: (string | RegExp)[]): boolean {
|
||||
return excludePathPattern.some((pattern) => {
|
||||
const regex = new RegExp(pattern);
|
||||
return regex.test(path)
|
||||
});
|
||||
}
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user