ulg 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/bin/ulg +1 -1
  2. data/lib/ulg.rb +3 -3
  3. metadata +1 -1
data/bin/ulg CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  require 'ulg'
4
4
 
5
- VERSION = "0.2.1"
5
+ VERSION = "0.2.2"
6
6
 
7
7
  ulg = ULG.new
8
8
  opt = Getopt::Std.getopts("f:o:s:dhv")
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*')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ulg
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: