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
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
only regex match strings to avoid unexpected behaviour when using Object#=~
Markus Kahlcbc343774ae2
diff --git a/lib/open_project/configuration/helpers.rb b/lib/open_project/configuration/helpers.rbindex 39502138446..737c3632b64 100644--- a/lib/open_project/configuration/helpers.rb+++ b/lib/open_project/configuration/helpers.rb@@ -113,7 +113,7 @@ module OpenProject# Either the value already is an array or a string with values separated by spaces.# In the latter case the string will be split and the values returned as an array.def array(value)- if value =~ / /+ if value.is_a?(String) && value =~ / /value.split ' 'elseArray(value)