fix: narrow unicode cleanup scope

This commit is contained in:
Affaan Mustafa
2026-03-29 09:06:44 -04:00
parent 6325b197c1
commit e22ab5e5cb
29 changed files with 249 additions and 180 deletions

View File

@@ -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');