Moving to InvokeAI attention weighting syntax

This commit is contained in:
patriceac 2023-03-24 01:47:44 -07:00 committed by GitHub
parent a0dc82e1f9
commit a3b4ed0cd1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -125,7 +125,8 @@ function createModifierGroup(modifierGroup, initiallyExpanded, removeBy) {
} }
function trimModifiers(tag) { function trimModifiers(tag) {
return tag.replace(/^\(+|\)+$/g, '').replace(/^\[+|\]+$/g, '') // Remove trailing '-' and/or '+'
return tag.replace(/[-+]+$/, '');
} }
async function loadModifiers() { async function loadModifiers() {