Skip to content

Regex failing in Safari based devices (iOS) #28

@ganesshkumar

Description

@ganesshkumar

I am reusing the code to copy excel data in Obsidian editor. One issue is that when running the code is iOS, the regex throws an error as lookbehind regex is not supported in Safari based devices.

Use of lookbehind regex in excel-markdown-helpers.ts

const EXCEL_NEWLINE_ESCAPED_CELL_REGEX = /"([^\t]*(?<=[^\r])\n[^\t]*)"/g;

Question: Is it possible to rewrite this regex without lookbehind regex? I am looking for your help as I didn't want to touch the regex without much context and introduce some regression by fixing this.

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