kaguranana-birthday-project/node_modules/tailwindcss/lib/util/escapeClassName.js
2021-12-12 18:49:32 -08:00

21 lines
647 B
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = escapeClassName;
var _postcssSelectorParser = _interopRequireDefault(require("postcss-selector-parser"));
var _get = _interopRequireDefault(require("lodash/get"));
var _escapeCommas = _interopRequireDefault(require("./escapeCommas"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function escapeClassName(className) {
const node = _postcssSelectorParser.default.className();
node.value = className;
return (0, _escapeCommas.default)((0, _get.default)(node, 'raws.value', node.value));
}