ulg 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/ulg +1 -1
- data/lib/ulg.rb +3 -3
- metadata +1 -1
data/bin/ulg
CHANGED
data/lib/ulg.rb
CHANGED
@@ -21,21 +21,21 @@ class ULG
|
|
21
21
|
|
22
22
|
@rex << '(?<from_open>[\[\<\(\{]*)'
|
23
23
|
@rex << '(?<from_label>[^\]\>\)\|\}\=\-\.]+)'
|
24
|
-
@rex << '(?<from_color>\|[^\]\>\)\}]+)?'
|
24
|
+
@rex << '(?<from_color>\|[^\]\>\)\} ]+)?'
|
25
25
|
@rex << '(?<from_close>[\]\>\)\}]*)\s+'
|
26
26
|
|
27
27
|
@rex << '(?<from_arrow>[\<\>ox]*)'
|
28
28
|
|
29
29
|
@rex << '(?<edge_open>[\=\-\.]+)'
|
30
30
|
@rex << '(?<edge_label>[^\=\-\|\.]*)'
|
31
|
-
@rex << '(?<edge_color>\|[^\=\-\|\.]+)?'
|
31
|
+
@rex << '(?<edge_color>\|[^\=\-\|\. ]+)?'
|
32
32
|
@rex << '(?<edge_close>[\=\-\.]+)'
|
33
33
|
|
34
34
|
@rex << '(?<to_arrow>[\<\>ox]*)\s+'
|
35
35
|
|
36
36
|
@rex << '(?<to_open>[\[\<\(\{]*)'
|
37
37
|
@rex << '(?<to_label>[^\]\>\)\|\}\=\-\.]+)'
|
38
|
-
@rex << '(?<to_color>\|[^\]\>\)\}]+)?'
|
38
|
+
@rex << '(?<to_color>\|[^\]\>\)\} ]+)?'
|
39
39
|
@rex << '(?<to_close>[\]\>\)\}]*)'
|
40
40
|
|
41
41
|
@arrow_regex = @rex.join('\s*')
|