Skip to content

去除零宽字符崩溃 #1542

@happy201993

Description

@happy201993

Bug 表现
崩溃

截图
Bug 现场的界面截图,或者 Xcode 控制台的错误信息截图,有问题的代码截图
image

如何重现
运行下面的代码,崩溃
NSString *text = @"18‍22";
[text qmui_stringByReplacingPattern:@"[\u200b-\u200f\uFEFF\u202a-\u202e]" withString:@""];

预期的表现
不崩溃,并且能替换掉零宽字符

其他信息

  • 设备: 模拟器
  • iOS 版本: 所有版本
  • Xcode 版本: Xcode 15
  • QMUI 版本: [4.7.0]

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions