[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
This commit is contained in:
argiro.kokogiannaki 2021-05-19 11:24:10 +00:00
parent ac8381b004
commit 641c76f169
2 changed files with 5 additions and 1 deletions

View File

@ -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
}
};

View File

@ -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);
}