diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2019-11-30 21:10:36 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2019-11-30 21:10:36 +0900 |
| commit | ef95a9fa93d4f9f8c0824e93486115dbefeee3a0 (patch) | |
| tree | 6f67bce36c60de0339b496f8711815c8f930fd82 /mrbgems/mruby-bin-mruby | |
| parent | 25b5b79cc3cfff956d107452b67aeb4d57c78202 (diff) | |
| download | mruby-ef95a9fa93d4f9f8c0824e93486115dbefeee3a0.tar.gz mruby-ef95a9fa93d4f9f8c0824e93486115dbefeee3a0.zip | |
Use a string as a common regexp representation; ref #4847
Diffstat (limited to 'mrbgems/mruby-bin-mruby')
| -rw-r--r-- | mrbgems/mruby-bin-mruby/bintest/mruby.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mrbgems/mruby-bin-mruby/bintest/mruby.rb b/mrbgems/mruby-bin-mruby/bintest/mruby.rb index 4edfd04c3..9887a2830 100644 --- a/mrbgems/mruby-bin-mruby/bintest/mruby.rb +++ b/mrbgems/mruby-bin-mruby/bintest/mruby.rb @@ -129,7 +129,7 @@ assert('mruby -r option (file not found)') do end assert('mruby -v option') do - ver_re = /\Amruby \d+\.\d+\.\d+ \(\d+-\d+-\d+\)\n/ + ver_re = '\Amruby \d+\.\d+\.\d+ \(\d+-\d+-\d+\)\n' assert_mruby(/#{ver_re}\z/, "", true, %w[-v]) assert_mruby(/#{ver_re}^[^\n]*NODE.*\n:end\n\z/m, "", true, %w[-v -e p(:end)]) end |
