mirror of
https://github.com/Redocly/redoc.git
synced 2025-02-12 07:50:34 +03:00
parent
3d1108f447
commit
899419269b
|
@ -42,7 +42,7 @@ function valueToHTML(value) {
|
||||||
} else if (valueType === 'number') {
|
} else if (valueType === 'number') {
|
||||||
output += decorateWithSpan(value, 'type-number');
|
output += decorateWithSpan(value, 'type-number');
|
||||||
} else if (valueType === 'string') {
|
} 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>' +
|
output += decorateWithSpan('"', 'type-string') + '<a href="' + value + '">' + htmlEncode(value) + '</a>' +
|
||||||
decorateWithSpan('"', 'type-string');
|
decorateWithSpan('"', 'type-string');
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user