Stripe potential sso/nosso section when saving postinstall notes
This commit is contained in:
@@ -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,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user