shells 0.1.16 → 0.1.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/shells/shell_base.rb +2 -2
- data/lib/shells/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2424a8d228c192d04bb67fd0da415c05279825df
|
4
|
+
data.tar.gz: c519f8d880364c1460eff4b11dac8e94a4cc85f6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0ba51eabac0d843acaab5c5be3e26db32dd8bed3766d991688c339cd737496b27ce937ab7d77bfb7ca91736a8e012b33b912e80cefba8e6c785ee2cc41659256
|
7
|
+
data.tar.gz: b47145ec215f8edc35f9acce2664ee76982f7fd42da3ea55a260cbd421122980260664cc40167ce82f3a275c4eaf5cc4414ae79d3f90c8232b5b1ec58b5111a4
|
data/lib/shells/shell_base.rb
CHANGED
@@ -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
|
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
|
data/lib/shells/version.rb
CHANGED