mirror of
https://github.com/affaan-m/everything-claude-code.git
synced 2026-04-06 09:13:31 +08:00
fix: narrow unicode cleanup scope
This commit is contained in:
@@ -48,6 +48,7 @@ function resetAliases() {
|
||||
}
|
||||
|
||||
function runTests() {
|
||||
const rocketEmoji = String.fromCodePoint(0x1F680);
|
||||
console.log('\n=== Testing session-aliases.js ===\n');
|
||||
|
||||
let passed = 0;
|
||||
@@ -1441,7 +1442,7 @@ function runTests() {
|
||||
'CJK characters should be rejected');
|
||||
|
||||
// Emoji
|
||||
const emojiResult = aliases.resolveAlias('rocket-');
|
||||
const emojiResult = aliases.resolveAlias(`rocket-${rocketEmoji}`);
|
||||
assert.strictEqual(emojiResult, null,
|
||||
'Emoji should be rejected by the ASCII-only regex');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user