Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function currentLayer(newLayerName, layerName) {
// UpperCase
let name = newLayerName.replace(/%\*u%/gi, changeCase.upperCase(layerName))
// LowerCase
name = name.replace(/%\*l%/gi, changeCase.lowerCase(layerName))
// Title Case
name = name.replace(/%\*t%/gi, toTitleCase(layerName))
// name = name.replace(/%\*t%/gi, changeCase.titleCase(layerName))
// UpperCase First
name = name.replace(/%\*uf%/gi, changeCase.upperCaseFirst(layerName))
// Camel Case
name = name.replace(/%\*c%/gi, changeCase.camelCase(layerName))
// Layername
name = name.replace(/%\*/g, layerName)
function currentLayer(newLayerName, layerName) {
// UpperCase
let name = newLayerName.replace(/%\*u%/gi, changeCase.upperCase(layerName));
// LowerCase
name = name.replace(/%\*l%/gi, changeCase.lowerCase(layerName));
// Title Case
name = name.replace(/%\*t%/gi, toTitleCase(layerName));
// name = name.replace(/%\*t%/gi, changeCase.titleCase(layerName))
// UpperCase First
name = name.replace(/%\*uf%/gi, changeCase.upperCaseFirst(layerName));
// Camel Case
name = name.replace(/%\*c%/gi, changeCase.camelCase(layerName));
// Layername
name = name.replace(/%\*/g, layerName);
function currentLayer(newLayerName, layerName) {
// UpperCase
let name = newLayerName.replace(/%\*u%/gi, changeCase.upperCase(layerName))
// LowerCase
name = name.replace(/%\*l%/gi, changeCase.lowerCase(layerName))
// Title Case
name = name.replace(/%\*t%/gi, toTitleCase(layerName))
// UpperCase First
name = name.replace(/%\*uf%/gi, changeCase.upperCaseFirst(layerName))
// Camel Case
name = name.replace(/%\*c%/gi, changeCase.camelCase(layerName))
// Param Case
name = name.replace(/%\*pc%/gi, changeCase.paramCase(layerName))
secondary={this.renderScopeExpression(entry.scopes)}
/>
)}
}
/>
{entry.description ? (
{entry.description}}
/>
) : (
renderFunctionExpansionDetails = () => {
const { serviceName, classes, entry } = this.props;
const signature = this.getSignatureFromEntry(entry);
return (
}
/>
{entry.scopes && (
{scopes[operator].map((scope, index) => (
{this.renderScopeExpression(scope)}
{index < scopes[operator].length - 1 && (
)}
))}
.map(word => {
const pretty = word === 'Irc' ? upperCase(word) : word;
return pretty;
})
.join(' ');
<div>
v{entry.version}
</div>
<div>
{entry.title}
</div>
<div>
</div>
);
};