mirror of
https://github.com/gchq/CyberChef.git
synced 2025-05-09 15:55:01 -04:00
Remove polish L
This commit is contained in:
parent
4c3324aea1
commit
fbb6c9019a
1 changed files with 2 additions and 0 deletions
|
@ -32,6 +32,8 @@ class RemoveDiacritics extends Operation {
|
|||
* @returns {string}
|
||||
*/
|
||||
run(input, args) {
|
||||
|
||||
input = input.replace("Ł", "L").replace("ł", "l");
|
||||
// reference: https://stackoverflow.com/questions/990904/remove-accents-diacritics-in-a-string-in-javascript/37511463
|
||||
return input.normalize("NFD").replace(/[\u0300-\u036f]/g, "");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue