From 7858186ecd1dac969e571b2cbcb31e6d46bd934e Mon Sep 17 00:00:00 2001 From: Ash Searle Date: Sun, 28 Feb 2016 18:44:14 +0000 Subject: [PATCH] Show a little lenience for white-space around names --- src/diagrams/sequenceDiagram/parser/sequenceDiagram.jison | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/diagrams/sequenceDiagram/parser/sequenceDiagram.jison b/src/diagrams/sequenceDiagram/parser/sequenceDiagram.jison index 47cbea8e9..32029b78b 100644 --- a/src/diagrams/sequenceDiagram/parser/sequenceDiagram.jison +++ b/src/diagrams/sequenceDiagram/parser/sequenceDiagram.jison @@ -44,7 +44,7 @@ "sequenceDiagram" return 'SD'; "," return ','; ";" return 'NL'; -[^\->:\n,;]+ return 'ACTOR'; +[^\->:\n,;]+ { yytext = yytext.trim(); return 'ACTOR'; } "->>" return 'SOLID_ARROW'; "-->>" return 'DOTTED_ARROW'; "->" return 'SOLID_OPEN_ARROW';