-
Notifications
You must be signed in to change notification settings - Fork 2
RedirectMap
Bhsd edited this page Mar 18, 2025
·
1 revision
This is an internal document. For visitors, you can now go back to the home page.
// RediractMap (main)
var {RedirectMap} = require('../lib/redirectMap');
var a = new RedirectMap({a: 'b'}),
b = new RedirectMap(new Map([['a', 'b']])),
c = new RedirectMap({a: 'b'}, false),
d = new RedirectMap(new Map([['a', 'b']]), false);
assert.deepStrictEqual([...a], [['A', 'B']]);
assert.deepStrictEqual([...b], [['A', 'B']]);
assert.deepStrictEqual([...c], [['A', 'b']]);
assert.deepStrictEqual([...d], [['A', 'b']]);
a.set('c', 'd');
assert.deepStrictEqual([...a], [['A', 'B'], ['C', 'D']]);
c.set('c', 'd');
assert.deepStrictEqual([...c], [['A', 'b'], ['C', 'd']]);
对维基文本批量执行语法检查的命令行工具
用于维基文本的 VSCode 扩展
A command-line tool that performs linting on Wikitext in bulk
VSCode extension for Wikitext