Uploaded image for project: 'SonarSwift'
  1. SonarSwift
  2. SONARSWIFT-113

Parsing string literals causes "String index out of range"

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.2
    • Component/s: None
    • Labels:
      None

      Description

      Method SyntaxUtils.parseStringLiteralForExpressions() causes "String index out of range" exception for strings with escaped slashes like

      "\\("

        Attachments

          Activity

            People

            Assignee:
            elena.vilchik Elena Vilchik
            Reporter:
            elena.vilchik Elena Vilchik
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: