(string)
| 684 | const shaCache = {}; |
| 685 | |
| 686 | function sha1(string) |
| 687 | { |
| 688 | if(string.length > 1000) |
| 689 | return crypto.hash('sha1', string, 'hex'); |
| 690 | else if(shaCache[string]) |
| 691 | return shaCache[string]; |
| 692 | |
| 693 | return shaCache[string] = crypto.hash('sha1', string, 'hex'); |
| 694 | } |
| 695 | |
| 696 | function loadLanguage(lan = false) |
| 697 | { |
no outgoing calls
no test coverage detected