[fix] sui page style

This commit is contained in:
Max 2023-12-09 00:26:27 +08:00
parent 38f4f3fd23
commit 0dde10caca

View file

@ -219,7 +219,7 @@ func (page *Page) BuildStyle(option *BuildOption) (string, error) {
if option.Namespace != "" {
code = cssRe.ReplaceAllStringFunc(code, func(css string) string {
return fmt.Sprintf("[s:ns=%s] %s", option.Namespace, css)
return fmt.Sprintf("[s\\:ns=%s] %s", option.Namespace, css)
})
}