Skip to content

Commit

Permalink
TASK: Better section id placeholder
Browse files Browse the repository at this point in the history
  • Loading branch information
rolandschuetz committed Nov 10, 2021
1 parent 39671dd commit 9c50741
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Configuration/NodeTypes.Mixin.SectionConfiguration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
editorOptions:
# Implements the most common subset of CodeQ.JumpMarkers:Integration.Helper.NodeAnchorId,
# fully implementing Carbon.String.urlize(value) would bloat the code too much
placeholder: "ClientEval: (node.properties.id || node.properties.hashMenuTitle || node.properties.title || ('node-id-' + node.identifier)).replace('&nbsp;', '-').replace(/<[^>]*>/g, ' ').substr(0, 100).trim().toLowerCase().replaceAll('ä', 'ae').replaceAll('ü', 'ue').replaceAll('ö', 'oe').replaceAll('ß', 'ss').replace(/[^A-Za-z0-9\/]+/g, '-').trim().replace(/^.*?([a-z].*)$/, /*remove non-alpha chars from start*/ '$1').replace(/(.*)-$/, /*remove dashes from end*/ '$1')"
placeholder: "ClientEval:node.properties.includeInHashMenu ? (node.properties.id || node.properties.hashMenuTitle || node.properties.title || ('node-id-' + node.identifier)).replace('&nbsp;', '-').replace(/<[^>]*>/g, ' ').substr(0, 100).trim().toLowerCase().replaceAll('ä', 'ae').replaceAll('ü', 'ue').replaceAll('ö', 'oe').replaceAll('ß', 'ss').replace(/[^A-Za-z0-9\/]+/g, '-').trim().replace(/^.*?([a-z].*)$/, /*remove non-alpha chars from start*/ '$1').replace(/(.*)-$/, /*remove dashes from end*/ '$1') : ''"
help:
message: i18n
validation:
Expand Down

0 comments on commit 9c50741

Please sign in to comment.