12 lines
371 B
TypeScript
12 lines
371 B
TypeScript
export function isLikelyGenshinSourceName(sourceName: string) {
|
|
const normalized = sourceName.trim().toLowerCase();
|
|
if (!normalized) return false;
|
|
return (
|
|
normalized === "genshin"
|
|
|| /\bgenshin\s*impact\b/.test(normalized)
|
|
|| normalized.includes("genshinimpact")
|
|
|| normalized.includes("yuanshen")
|
|
|| sourceName.includes("\u539f\u795e")
|
|
);
|
|
}
|