Skip to content

Sandrbox.perform breaks on strings containing semicolons #2

@jonvuri

Description

@jonvuri

Sandrbox's semicolon splitting includes no logic for semicolons inside strings:

require 'sandrbox'
p Sandrbox.perform(['"str; with; semis"']).output[0]

This results in "SyntaxError: sandrbox:2: unterminated string meets end of file" being printed (that is, that's what Sandrbox returns as .output[0])

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions