Stripe potential sso/nosso section when saving postinstall notes

This commit is contained in:
Johannes Zellner
2025-07-14 15:00:44 +02:00
parent aca85b63ae
commit 15c25329b6
3 changed files with 13 additions and 2 deletions

View File

@@ -577,6 +577,12 @@ function redirectIfNeeded(status, currentView) {
return false;
}
// strip potential sso tags in postinstall notes
function stripSsoInfo(notes, sso) {
if (sso) return notes.replace(/<nosso>.*?<\/nosso>/gs, '').replace(/<sso>/gs, '').replace(/<\/sso>/gs, '');
return notes.replace(/<sso>.*?<\/sso>/gs, '').replace(/<nosso>/gs, '').replace(/<\/nosso>/gs, '');
}
// named exports
export {
download,
@@ -586,6 +592,7 @@ export {
eventlogSource,
taskNameFromInstallationState,
redirectIfNeeded,
stripSsoInfo,
};
// default export
@@ -597,4 +604,5 @@ export default {
eventlogSource,
taskNameFromInstallationState,
redirectIfNeeded,
stripSsoInfo,
};