Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,20 @@ public int doExecute(EncryptContext context) throws Exception {
if (editMap.isEmpty()) {
throw new InterruptedException();
}
dispatcherConfigResult.put(editable.getKey(), editMap.get("edit"));
String result = editMap.get("edit").getResult();
if (template.contains("$")) {
String prefix = template.substring(0, template.indexOf('$'));
if (!result.startsWith(prefix)) {
result = prefix + result;
}
}
final String finalResult = result;
dispatcherConfigResult.put(editable.getKey(), new PromptResultItemIF() {
@Override
public String getResult() {
return finalResult;
}
});
}
}

Expand Down