mirror of
https://github.com/Redocly/redoc.git
synced 2024-11-10 19:06:34 +03:00
parent
3d1108f447
commit
899419269b
|
@ -42,7 +42,7 @@ function valueToHTML(value) {
|
|||
} else if (valueType === 'number') {
|
||||
output += decorateWithSpan(value, 'type-number');
|
||||
} else if (valueType === 'string') {
|
||||
if (/^(http|https):\/\/[^\\s]+$/.test(value)) {
|
||||
if (/^(http|https):\/\/[^\s]+$/.test(value)) {
|
||||
output += decorateWithSpan('"', 'type-string') + '<a href="' + value + '">' + htmlEncode(value) + '</a>' +
|
||||
decorateWithSpan('"', 'type-string');
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue
Block a user