diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-04-29 06:09:57 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-04-29 06:09:57 +0300 |
commit | 7a78c31f67b83bee08ec73eae8f935803b406deb (patch) | |
tree | 42624308cef69e7155116a8c37cd2669b209dfcc /app/assets/javascripts/editor | |
parent | a60762f1c9c446bcd3c53b363b5f87f31278d4cb (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 3aa19df964c..49b9a74fdb2 100644 --- a/app/assets/javascripts/editor/extensions/source_editor_extension_base.js +++ b/app/assets/javascripts/editor/extensions/source_editor_extension_base.js @@ -5,7 +5,7 @@ import { EXTENSION_BASE_LINE_NUMBERS_CLASS, } from '../constants'; -const hashRegexp = new RegExp('#?L', 'g'); +const hashRegexp = /#?L/g; const createAnchor = (href) => { const fragment = new DocumentFragment(); |