|
Last change
on this file since cdcff72 was 9af201e, checked in by MBK <marija.karapandzova@…>, 11 days ago |
|
Fix frontend appearance
|
-
Property mode
set to
100644
|
|
File size:
255 bytes
|
| Line | |
|---|
| 1 | import parser from 'postcss-selector-parser'
|
|---|
| 2 | import escapeCommas from './escapeCommas'
|
|---|
| 3 |
|
|---|
| 4 | export default function escapeClassName(className) {
|
|---|
| 5 | let node = parser.className()
|
|---|
| 6 | node.value = className
|
|---|
| 7 | return escapeCommas(node?.raws?.value ?? node.value)
|
|---|
| 8 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.