[TLC-380] Template link, spec test, doc fixup as per review

This commit is contained in:
Kim Shepherd
2023-02-06 13:01:33 +13:00
parent 6883b8c782
commit d86e8ed0a8
12 changed files with 117 additions and 72 deletions

View File

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