mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 01:54:15 +00:00
[TLC-380] Template link, spec test, doc fixup as per review
This commit is contained in:
@@ -67,9 +67,9 @@ export class MetadataValuesComponent implements OnChanges {
|
||||
|
||||
/**
|
||||
* Does this metadata value have a valid URL that should be rendered as a link?
|
||||
* @param value
|
||||
* @param value A MetadataValue being displayed
|
||||
*/
|
||||
hasLink(value): boolean {
|
||||
hasLink(value: MetadataValue): boolean {
|
||||
if (hasValue(this.urlRegex)) {
|
||||
const pattern = new RegExp(this.urlRegex);
|
||||
return pattern.test(value.value);
|
||||
|
Reference in New Issue
Block a user