Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ReplaceAccents in grid text function #3013

Open
1 task done
anthonychaussin opened this issue Nov 22, 2024 · 0 comments
Open
1 task done

Add ReplaceAccents in grid text function #3013

anthonychaussin opened this issue Nov 22, 2024 · 0 comments
Assignees

Comments

@anthonychaussin
Copy link

This issue is unique.

  • I have used the search tool and did not find an issue describing my idea.

Your idea.

Hi team !

I often use a macro to remove the accents from a text. It would be great if you could add it to the text functions!

Here is my code :

(function()
{
    /**
     * Function that returns the argument
     * @customfunction
     * @param {any} arg Any data.
     * @returns {any} The argumet of the function.
    */
    function ReplaceAccent(arg) {
        return arg.normalize('NFD').replace(/[\u0300-\u036f]/g, '');
    }
    Api.AddCustomFunction(ReplaceAccent);
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants