Skip to content

Commit

Permalink
fix: 🐞 Fix bug of parser style error when using IE6 and 7 csshack
Browse files Browse the repository at this point in the history
  • Loading branch information
bailicangdu committed Jan 12, 2022
1 parent 66b741d commit b3b8010
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion docs/en-us/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@

- **Bug Fix**

- 🐞 Fix bug of element-plus dom escape from micro-app element, issue [#157](https://github.com/micro-zoe/micro-app/issues/157)[#121](https://github.com/micro-zoe/micro-app/issues/121).
- 🐞 Fix bug of element-plus dom escape from micro-app element, issue [#157](https://github.com/micro-zoe/micro-app/issues/157), [#121](https://github.com/micro-zoe/micro-app/issues/121).
- 🐞 Fix bug of parser style error when using IE6 and 7 csshack, issue [#232](https://github.com/micro-zoe/micro-app/issues/223).

- **Update**

Expand Down
1 change: 1 addition & 0 deletions docs/zh-cn/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
- **Bug Fix**

- 🐞 修复了element-plus部分组件逃离元素隔离的问题, issue [#223](https://github.com/micro-zoe/micro-app/issues/223)
- 🐞 修复了在使用IE6、7 CSSHack时样式解析失败的问题, issue [#232](https://github.com/micro-zoe/micro-app/issues/223)

- **Update**

Expand Down
2 changes: 1 addition & 1 deletion src/source/scoped_css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ class CSSParser {
// match one styleDeclaration at a time
private styleDeclaration (): boolean | void {
// css property
if (!this.commonMatch(/^(\*?[-#\/\*\\\w]+(\[[0-9a-z_-]+\])?)\s*/)) return false
if (!this.commonMatch(/^(\*?[-#+\/\*\\\w]+(\[[0-9a-z_-]+\])?)\s*/)) return false

// match :
if (!this.commonMatch(/^:\s*/)) return parseError("property missing ':'", this.linkPath)
Expand Down

0 comments on commit b3b8010

Please sign in to comment.