mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-22 07:46:16 -04:00
add function to replace accent chars with latin chars
This commit is contained in:
parent
ac2466a304
commit
04ee2fb3e4
1 changed files with 2 additions and 3 deletions
|
@ -46,9 +46,8 @@ class RemoveLetterAccents extends Operation {
|
||||||
* @returns {string}
|
* @returns {string}
|
||||||
*/
|
*/
|
||||||
run(input, args) {
|
run(input, args) {
|
||||||
// const [firstArg, secondArg] = args;
|
return input.normalize("NFD").replace(/[\u0300-\u036f]/g, "");
|
||||||
|
//reference: https://stackoverflow.com/questions/990904/remove-accents-diacritics-in-a-string-in-javascript/37511463
|
||||||
throw new OperationError("Test");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue