diff options
author | Hiroshi SHIBATA <[email protected]> | 2025-05-13 13:29:16 +0900 |
---|---|---|
committer | Hiroshi SHIBATA <[email protected]> | 2025-05-13 14:37:24 +0900 |
commit | 4d9a1d5b6fc18a41fa72bb823dd49bafdc1a790f () | |
tree | 3defcdf3136718d6452f8f5caabb48b359537448 /prism | |
parent | c40557099dabfcde44f24462eab7fbd6317c52ba (diff) |
Handle to look up CGI::EscapeExt instead of using LoadError. cgi/escape is provided snce Ruby 2.3
Notes: Merged: https://.com/ruby/ruby/pull/13311
-rw-r--r-- | prism/templates/lib/prism/dot_visitor.rb.erb | 7 |
1 files changed, 2 insertions, 5 deletions
@@ -1,8 +1,5 @@ -begin - require "cgi/escape" -rescue LoadError - require "cgi/util" -end module Prism # This visitor provides the ability to call Node#to_dot, which converts a |