Skip to content

Compatibility Bug: Invalid regular expression (Named Capture Groups) on older WebKit/iOS 15 in v0.27.1 #5897

@KongQI-XianXian

Description

@KongQI-XianXian

Pre-submission Checklist

  • I have searched existing issues and confirmed this has not already been requested
  • This is a feature request, not a bug report or support question

Problem or Use Case

Description:
The application fails to load on older devices (e.g., iPad Air 2 running iOS 15.8) with a white screen error.

Error Message:

Plaintext
Unexpected Application Error!
Invalid regular expression: invalid group specifier name
RegExp@[native code]
Root Cause:
The compiled JavaScript in v0.27.1 (specifically in assets/index-*.js) contains Named Capture Groups in Regular Expressions (syntax like (?...)). This syntax is not supported by older WebKit versions found in iOS 15.

Environment:

Device: iPad Air 2

OS: iOS 15.8

Memos Version: v0.27.1

Deployment: Docker on Synology NAS (x86_64)

Question for Maintainers:

Is it possible to adjust the build target (e.g. Vite configuration) to transpile these ES2018+ regex patterns for better backward compatibility?

Many users enjoy using old tablets as dedicated

Image

"Memos kiosks." Will there be a fix for this in future releases, or is iOS 15 officially no longer supported for the web interface?

Proposed Solution

Use a more compatible regular expression syntax, or add multiple padding/transpiler settings during the build process to handle named capture groups.

Alternatives Considered

No response

Additional Context

No response

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