From 641c76f169a6afc4e36aa8877d5ebb15d0bd0ae1 Mon Sep 17 00:00:00 2001 From: "argiro.kokogiannaki" Date: Wed, 19 May 2021 11:24:10 +0000 Subject: [PATCH] [Library|Trunk] - add new fields for Customization options - DOI regex fix 10. rule git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@61025 d315682c-612b-4755-9ff5-7f18f6832af3 --- connect/community/CustomizationOptions.ts | 4 ++++ utils/string-utils.class.ts | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/connect/community/CustomizationOptions.ts b/connect/community/CustomizationOptions.ts index 8b5360c7..38ef08b6 100644 --- a/connect/community/CustomizationOptions.ts +++ b/connect/community/CustomizationOptions.ts @@ -23,6 +23,8 @@ export class CustomizationOptions { }, form: { color: string; //background + imageUrl: string; + imageFile: string; } }; buttons: { @@ -46,6 +48,8 @@ export class CustomizationOptions { }, form : { color: CustomizationOptions.getRGBA(this.identity.mainColor,0.15), + imageUrl : null, + imageFile : null } }; diff --git a/utils/string-utils.class.ts b/utils/string-utils.class.ts index bd1f8454..7a072771 100644 --- a/utils/string-utils.class.ts +++ b/utils/string-utils.class.ts @@ -214,7 +214,7 @@ export class Identifier { //keep only exp3? let exp1 = /\b(10[.][0-9]{4,}(?:[.][0-9]+)*\/(?:(?!["&\'<>])\S)+)\b/g; let exp2 = /\b(10[.][0-9]{4,}(?:[.][0-9]+)*\/(?:(?!["&\'<>])[[:graph:]])+)\b/g; - let exp3 = /\b(10.*)\b/g; + let exp3 = /\b(10[.]*)\b/g; return (str.match(exp1) != null || str.match(exp2) != null || str.match(exp3) != null); }