Commit 5f7fa137 authored by Rene Saarsoo's avatar Rene Saarsoo
Browse files

Fix Ruby warning about regex.

parent 80bfac5a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -430,7 +430,7 @@ module JsDuck
    def default_value
      start_pos = @input.pos
      lit = JsLiteralParser.new(@input).literal
      if lit && look(/ *]/)
      if lit && look(/ *\]/)
        # When lital matched and there's nothing after it up to the closing "]"
        JsLiteralBuilder.new.to_s(lit)
      else