MCPcopy Index your code
hub / github.com/easydiffusion/easydiffusion / trimModifiers

Function trimModifiers

ui/media/js/image-modifiers.js:150–155  ·  view source on GitHub ↗
(tag)

Source from the content-addressed store, hash-verified

148}
149
150function trimModifiers(tag) {
151 // Remove trailing '-' and/or '+'
152 tag = tag.replace(/[-+]+$/, "")
153 // Remove parentheses at beginning and end
154 return tag.replace(/^[(]+|[\s)]+$/g, "")
155}
156
157async function loadModifiers() {
158 try {

Callers 5

createModifierGroupFunction · 0.85
refreshModifiersStateFunction · 0.85
refreshInactiveTagsFunction · 0.85
toggleCardStateFunction · 0.85
ModifierToggleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected