Commit 0f4dd1bb authored by Rene Saarsoo's avatar Rene Saarsoo
Browse files

Fix regression in {@link} errors reporting.

Full match variable in ruby is $& not $0.
parent bbbaa874
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -50,7 +50,7 @@ module JsDuck
      # replacement.
      def replace(input)
        if input.check(@re)
          input.scan(@re).sub(@re) { apply_tpl($1, $2, $0) }
          input.scan(@re).sub(@re) { apply_tpl($1, $2, $&) }
        else
          false
        end