diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2019-07-04 18:46:34 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2019-07-04 18:47:22 +0900 |
commit | ee861e43f70d827abd1f8d26b2e97920237348b4 (patch) | |
tree | 6afb0e9f5bfe4e4cb728e0acb2ec5db8992bc6b4 /lib/reline | |
parent | 0c3e6e86bdcb708d283dc57ed3c18ed1b40e4a17 (diff) |
Skip indented comment lines [Bug #15981]
Diffstat (limited to 'lib/reline')
-rw-r--r-- | lib/reline/config.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/reline/config.rb b/lib/reline/config.rb index 1415a39194..760777997e 100644 --- a/lib/reline/config.rb +++ b/lib/reline/config.rb @@ -119,7 +119,7 @@ class Reline::Config @if_stack = [] lines.each_with_index do |line, no| - next if line.start_with?('#') + next if line.match(/\A\s*#/) no += 1 |