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
Replace invalid octal escape sequences in RegEx
Alexander Brandon Colescc4fbd0628dd
diff --git a/modules/github_integration/frontend/module/git-actions/git-actions.service.ts b/modules/github_integration/frontend/module/git-actions/git-actions.service.tsindex 21fdb96322c..eeece1315e5 100644--- a/modules/github_integration/frontend/module/git-actions/git-actions.service.ts+++ b/modules/github_integration/frontend/module/git-actions/git-actions.service.ts@@ -38,8 +38,8 @@ export class GitActionsService {return str.replace(/&/g, 'and ') // & becomes and.replace(/ +/g, '-') // Spaces become dashes- .replace(/[\000-\039]/g, '') // ASCII control characters are out- .replace(/\177/g, '') // DEL is out+ .replace(/[\x00-\x1F]/g, '') // ASCII control characters are out+ .replace(/\x7F/g, '') // DEL is out.replace(/[#\\\/\?\*\~\^\:\{\}@\.\[\]'"]/g, '') // Some other characters with special rules are out.replace(/^[-]+/g, '') // Dashes at the start are removed.replace(/[-]+$/g, '') // Dashes at the end are removeddiff --git a/modules/gitlab_integration/frontend/module/git-actions/git-actions.service.ts b/modules/gitlab_integration/frontend/module/git-actions/git-actions.service.tsindex d79af424e52..e08d336b4e7 100644--- a/modules/gitlab_integration/frontend/module/git-actions/git-actions.service.ts+++ b/modules/gitlab_integration/frontend/module/git-actions/git-actions.service.ts@@ -41,8 +41,8 @@ export class GitActionsService {return str.replace(/&/g, 'and ') // & becomes and.replace(/ +/g, '-') // Spaces become dashes- .replace(/[\000-\039]/g, '') // ASCII control characters are out- .replace(/\177/g, '') // DEL is out+ .replace(/[\x00-\x1F]/g, '') // ASCII control characters are out+ .replace(/\x7F/g, '') // DEL is out.replace(/[#\\\/\?\*\~\^\:\{\}@\.\[\]'"]/g, '') // Some other characters with special rules are out.replace(/^[-]+/g, '') // Dashes at the start are removed.replace(/[-]+$/g, '') // Dashes at the end are removed