Data update
This commit is contained in:
parent
5150844a7d
commit
4bb20c9b71
7735 changed files with 38060 additions and 199180 deletions
|
|
@ -1,8 +1,8 @@
|
|||
function replace(input: string, key: number) : string {
|
||||
return input.replace(/([a-z])/g,
|
||||
($1) => String.fromCharCode(($1.charCodeAt(0) + key + 26 - 97) % 26 + 97)
|
||||
).replace(/([A-Z])/g,
|
||||
($1) => String.fromCharCode(($1.charCodeAt(0) + key + 26 - 65) % 26 + 65));
|
||||
return input.replace(/([a-z])/g,
|
||||
($1) => String.fromCharCode(($1.charCodeAt(0) + key + 26 - 97) % 26 + 97)
|
||||
).replace(/([A-Z])/g,
|
||||
($1) => String.fromCharCode(($1.charCodeAt(0) + key + 26 - 65) % 26 + 65));
|
||||
}
|
||||
|
||||
// test
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue