Skip to content

Double slash // is recognized as comment in Ruby code #1351

@hachi8833

Description

@hachi8833

Version 9.8.0 "New York"

image

As shown the screenshot above, double slash "//" is recognized as comment in Ruby code.

def match?(string, pos = 0)
  !!match(string, pos)
end unless //.respond_to?(:match?)

*"//" is a representation of Regex object in the case.

Thank you,

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions