Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | 518x 14x 504x 257x 504x 19x | import { PrimitiveValue } from 'type/field-value';
function unstandardizeUrl(
value: PrimitiveValue,
hostname: string
): PrimitiveValue {
if (typeof value !== 'string') {
return value;
}
if (value.startsWith('<9dbhost>')) {
value = value.replace('<9dbhost>', hostname);
}
return value;
}
export default unstandardizeUrl;
|