From e842ad0236f2451a89ef071417846902af0f32b5 Mon Sep 17 00:00:00 2001 From: Francesco Aiello Date: Fri, 31 Mar 2023 10:19:12 -0700 Subject: [PATCH] Remove unused ERB start/end constants Co-authored-by: Elia Schito --- lib/erb/formatter.rb | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/erb/formatter.rb b/lib/erb/formatter.rb index ad16726..2f57a87 100644 --- a/lib/erb/formatter.rb +++ b/lib/erb/formatter.rb @@ -38,8 +38,6 @@ class Error < StandardError; end ERB_TAG = %r{(<%(?:==|=|-|))\s*(.*?)\s*(-?%>)}m ERB_PLACEHOLDER = %r{erb[a-z0-9]+tag} - ERB_END = %r{(<%-?)\s*(end)\s*(-?%>)} - ERB_ELSE = %r{(<%-?)\s*(else|elsif\b.*)\s*(-?%>)} TAG_NAME = /[a-z0-9_:-]+/ TAG_NAME_ONLY = /\A#{TAG_NAME}\z/