diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-05-16 21:09:11 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-05-16 21:09:11 +0300 |
commit | 7ff36fc6e9f0f5dffb41bfc79b4f07b2ce93e1c7 (patch) | |
tree | 7339fa1c323a7584a2e2edacb8e32c7d5781511e /app/assets/javascripts/editor | |
parent | d7b1354b396d2e579fd6fe3c18a28b6ffe934f09 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/assets/javascripts/editor')
-rw-r--r-- | app/assets/javascripts/editor/extensions/source_editor_extension_base.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/assets/javascripts/editor/extensions/source_editor_extension_base.js b/app/assets/javascripts/editor/extensions/source_editor_extension_base.js index 49b9a74fdb2..0590bb7455a 100644 --- a/app/assets/javascripts/editor/extensions/source_editor_extension_base.js +++ b/app/assets/javascripts/editor/extensions/source_editor_extension_base.js @@ -64,7 +64,7 @@ export class SourceEditorExtension { const [start, end] = bounds && Array.isArray(bounds) ? bounds - : window.location.hash?.replace(hashRegexp, '').split('-'); + : window.location.hash.replace(hashRegexp, '').split('-'); let startLine = start ? parseInt(start, 10) : null; let endLine = end ? parseInt(end, 10) : startLine; if (endLine < startLine) { |