first commit
This commit is contained in:
16
app_vue/node_modules/@hapi/hoek/lib/reachTemplate.js
generated
vendored
Normal file
16
app_vue/node_modules/@hapi/hoek/lib/reachTemplate.js
generated
vendored
Normal file
@ -0,0 +1,16 @@
|
||||
'use strict';
|
||||
|
||||
const Reach = require('./reach');
|
||||
|
||||
|
||||
const internals = {};
|
||||
|
||||
|
||||
module.exports = function (obj, template, options) {
|
||||
|
||||
return template.replace(/{([^{}]+)}/g, ($0, chain) => {
|
||||
|
||||
const value = Reach(obj, chain, options);
|
||||
return (value === undefined || value === null ? '' : value);
|
||||
});
|
||||
};
|
Reference in New Issue
Block a user