shells 0.1.16 → 0.1.17

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0e354e8be6b735b095f817b7e81d16b17623dca1
4
- data.tar.gz: 4bd80fab1367ffb4906ba3f7a2ac71467f2be52b
3
+ metadata.gz: 2424a8d228c192d04bb67fd0da415c05279825df
4
+ data.tar.gz: c519f8d880364c1460eff4b11dac8e94a4cc85f6
5
5
  SHA512:
6
- metadata.gz: c79d26288cfb080164d2fcbe670cc74a38d53471208e023d66e8c0584a83b1778c40dd15f26b7970cfb34186ca6847dc7e680e4b034dec64b08695e97e82ed09
7
- data.tar.gz: e19f6b9ffc46635a73ee9d7cd962f905cb2c300bddd31abff858fec7aa5054ae9f9a36962f05530058be2ac9b3711e1f6917f71db4da2078955eaf50dae9facc
6
+ metadata.gz: 0ba51eabac0d843acaab5c5be3e26db32dd8bed3766d991688c339cd737496b27ce937ab7d77bfb7ca91736a8e012b33b912e80cefba8e6c785ee2cc41659256
7
+ data.tar.gz: b47145ec215f8edc35f9acce2664ee76982f7fd42da3ea55a260cbd421122980260664cc40167ce82f3a275c4eaf5cc4414ae79d3f90c8232b5b1ec58b5111a4
@@ -852,12 +852,12 @@ module Shells
852
852
  def command_match(command)
853
853
  p = regex_escape @options[:prompt]
854
854
  c = regex_escape command
855
- /\A(?:#{p}\s*)?#{c}[ \t\r]*\n?/m
855
+ /\A(?:#{p}\s*)?#{c}[ \t]*\n?/m
856
856
  end
857
857
 
858
858
  def prompt_match
859
859
  # allow for trailing spaces or tabs, but no other whitespace.
860
- @prompt_match ||= /#{@options[:prompt]}[ \t]*$/
860
+ @prompt_match ||= /#{regex_escape @options[:prompt]}[ \t]*$/
861
861
  end
862
862
 
863
863
  end
@@ -1,3 +1,3 @@
1
1
  module Shells
2
- VERSION = "0.1.16"
2
+ VERSION = "0.1.17"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shells
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.16
4
+ version: 0.1.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - Beau Barker