From 65cd26efd88e013c532c223fe9ab9ea4d0c93271 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Thu, 16 Jun 2022 19:52:51 +0900 Subject: [PATCH] Fix flag to `Regexp.new` Probably intended to pass encoding "none". --- lib/racc/statetransitiontable.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/racc/statetransitiontable.rb b/lib/racc/statetransitiontable.rb index 4d542872..cae411c9 100644 --- a/lib/racc/statetransitiontable.rb +++ b/lib/racc/statetransitiontable.rb @@ -216,7 +216,7 @@ def mkmapexp(arr) end i = ii end - Regexp.compile(map, 'n') + Regexp.compile(map, nil, 'n') end def set_table(entries, dummy, tbl, chk, ptr)