Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: 修复scopedCSS中new RegExp(prefix)中实例正则特殊字符报错问题 #1508

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

edward492626
Copy link

问题描述:
scopedCss中实例化正则字符串中含特殊字符报错
WechatIMG3749

解决方案
image
将正则字符串转义
同时还将scopedCss中的循环调用添加到if条件中

@timhub66 timhub66 self-requested a review January 21, 2025 08:28
@timhub66
Copy link
Collaborator

@edward492626 ,感谢PR,你有相应的demo吗?

@edward492626
Copy link
Author

edward492626 commented Feb 5, 2025

@timhub66 没写demo,当初直接在我代码中测试的,新建了一个demo
https://github.com/edward492626/fix-scoped-css-bug
不过我发现没是不是子应用要单独引用样式表,目前我的demo中没进
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants