我試圖在原子中連接rubocop並在原子中出錯。 linter-registry.js [sm]:144 [Linter] Error running RuboCop Error: /usr/lib/ruby/2.3.0/rubygems/dependency.rb:319:in `to_specs': Could not find 'rubocop' (>= 0.a) among 16 tota
我使用gsub方法用正則表達式: @text.gsub(/(-\n)(\S+)\s/) { "#{$2}\n" }
輸入數據的例子: "The wolverine is now es-
sentially absent from
the southern end
of its European range."
應該返回: "The wolverine is now essential