fix tooltip punctuation
This commit is contained in:
parent
e09f49a345
commit
ade956cdbc
1 changed files with 2 additions and 1 deletions
|
|
@ -194,7 +194,8 @@ BlockDefinition.parseRawDefinition = function(rawBlockDefinition, definitionPath
|
||||||
// take the first line of the description
|
// take the first line of the description
|
||||||
// blockDef.tooltip = blockDef.description.split("\n")[0]
|
// blockDef.tooltip = blockDef.description.split("\n")[0]
|
||||||
// take the first sentence of the description
|
// take the first sentence of the description
|
||||||
blockDef.tooltip = blockDef.description.split(/\.(\s|$)/)[0] + "."
|
blockDef.tooltip = blockDef.description.split(/\.(\s|$)/)[0]
|
||||||
|
if(!blockDef.tooltip.endsWith("?")) { blockDef.tooltip += "." }
|
||||||
blockDef.disabled = !!rawBlockDefinition.disabled
|
blockDef.disabled = !!rawBlockDefinition.disabled
|
||||||
blockDef.connections = rawBlockDefinition.connections
|
blockDef.connections = rawBlockDefinition.connections
|
||||||
blockDef.template = rawBlockDefinition.template
|
blockDef.template = rawBlockDefinition.template
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue