Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Allow multiple-directory dynamic Stimulus controller namespacing

Aaron Contreras63d0dcb53cc7
diff --git a/frontend/src/stimulus/controllers/op-application.controller.ts b/frontend/src/stimulus/controllers/op-application.controller.ts
index dfb9ce2a17b..57b12f44770 100644
--- a/frontend/src/stimulus/controllers/op-application.controller.ts
+++ b/frontend/src/stimulus/controllers/op-application.controller.ts
@@ -31,6 +31,6 @@ export class OpApplicationController extends ApplicationController {
* @private
*/
private derivePath(controller:string):string {
- return controller.replace('--', '/');
+ return controller.replace(/--/g, '/');
}
}