regexp-examples 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -67,6 +67,8 @@ module RegexpExamples
67
67
  if char == "\\"
68
68
  if BackslashCharMap.keys.include?(@chars[i+1])
69
69
  @chars[i..i+1] = BackslashCharMap[@chars[i+1]]
70
+ elsif @chars[i+1] == 'b'
71
+ @chars[i..i+1] = "\b"
70
72
  elsif @chars[i+1] == "\\"
71
73
  @chars.delete_at(i+1)
72
74
  else
@@ -1,3 +1,3 @@
1
1
  module RegexpExamples
2
- VERSION = '0.3.0'
2
+ VERSION = '0.3.1'
3
3
  end
@@ -3,7 +3,6 @@ require File.expand_path("../lib/regexp-examples/version", __FILE__)
3
3
  Gem::Specification.new do |s|
4
4
  s.name = 'regexp-examples'
5
5
  s.version = RegexpExamples::VERSION
6
- s.date = '2014-11-04'
7
6
  s.summary = "Extends the Regexp class with '#examples'"
8
7
  s.description =
9
8
  'Regexp#examples returns a list of strings that are matched by the regex'
@@ -93,7 +93,8 @@ RSpec.describe Regexp, "#examples" do
93
93
  /\f/,
94
94
  /\a/,
95
95
  /\v/,
96
- /\e/
96
+ /\e/,
97
+ /[\b]/
97
98
  )
98
99
  end
99
100
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: regexp-examples
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tom Lord
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-11-04 00:00:00.000000000 Z
11
+ date: 2015-01-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler