mirror of
https://github.com/Sevichecc/Urara-Blog.git
synced 2025-05-04 01:19:30 +08:00
21 lines
No EOL
468 B
Text
21 lines
No EOL
468 B
Text
"use strict";
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
value: true
|
|
});
|
|
exports.default = isPlaceholderType;
|
|
|
|
var _definitions = require("../definitions");
|
|
|
|
function isPlaceholderType(placeholderType, targetType) {
|
|
if (placeholderType === targetType) return true;
|
|
const aliases = _definitions.PLACEHOLDERS_ALIAS[placeholderType];
|
|
|
|
if (aliases) {
|
|
for (const alias of aliases) {
|
|
if (targetType === alias) return true;
|
|
}
|
|
}
|
|
|
|
return false;
|
|
} |