line-tree 0.2.3 → 0.2.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/line-tree.rb +2 -2
  2. metadata +2 -2
data/lib/line-tree.rb CHANGED
@@ -5,8 +5,8 @@ class LineTree
5
5
 
6
6
  def initialize(lines)
7
7
  a = lines.split(/\r?\n|\r(?!\n)/)
8
- pattern = %r((\s+)?(((\/|.)[^\s]+)\s)?([^$]+))
9
- a.map!{|x| x.match(pattern).captures.values_at(0,2,4)}
8
+ pattern = %r((\s+)?(.*))
9
+ a.map!{|x| x.match(pattern).captures}
10
10
 
11
11
  new_a, history = [], []
12
12
  history << new_a
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: line-tree
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors: []
7
7
 
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2010-04-04 00:00:00 +01:00
12
+ date: 2010-05-23 00:00:00 +01:00
13
13
  default_executable:
14
14
  dependencies: []
15
15