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

Ability to append/remove from default urlShorteners #129

Closed
vincer opened this issue Jul 23, 2020 · 1 comment
Closed

Ability to append/remove from default urlShorteners #129

vincer opened this issue Jul 23, 2020 · 1 comment

Comments

@vincer
Copy link

vincer commented Jul 23, 2020

You can only fully override urlShorteners currently so if you're just looking to add (or remove) one, you need to find the default list and copy/paste it into your config. This is both a bit onerous and additionally means that you won't get future updates to the default list.

My own example is that I want to add applications.zoom.us as an url shortener but not change the defaults.

Maybe urlShorteners can optionally take a method that has the defaults as an argument:

({defaultShorteners}) => defaultShorteners.concat(["applications.zoom.us"])
@johnste
Copy link
Owner

johnste commented Jan 28, 2021

Released in 3.2.0

@johnste johnste closed this as completed Jan 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants