lib/spoom/sorbet/sigils.rb in spoom-1.1.9 vs lib/spoom/sorbet/sigils.rb in spoom-1.1.10
- old
+ new
@@ -23,10 +23,10 @@
STRICTNESS_STRICT,
STRICTNESS_STRONG,
STRICTNESS_INTERNAL,
].freeze, T::Array[String])
- SIGIL_REGEXP = T.let(/^#\s*typed\s*:\s*(\w*)\s*$/.freeze, Regexp)
+ SIGIL_REGEXP = T.let(/^#[\ t]*typed[\ t]*:[ \t]*(\w*)[ \t]*/.freeze, Regexp)
# returns the full sigil comment string for the passed strictness
sig { params(strictness: String).returns(String) }
def self.sigil_string(strictness)
"# typed: #{strictness}"