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

optimize replace spaces function #2

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mdegoys
Copy link

@mdegoys mdegoys commented Jun 12, 2022

Suggestion pour optimiser la fonction:

  • utiliser une regex au lieu de deux
  • mettre la regex dans le scope de la fonction (plutôt que le scope global)

Autre option fournie par JavaScript: la fonction trim() qui fait la même chose: https://www.w3schools.com/jsref/jsref_trim_string.as. :).

@vercel
Copy link

vercel bot commented Jun 12, 2022

Someone is attempting to deploy a commit to a Personal Account owned by @eyssette on Vercel.

@eyssette first needs to authorize it.

@netlify
Copy link

netlify bot commented Jun 12, 2022

Deploy Preview for text2quiz ready!

Name Link
🔨 Latest commit 2c49247
🔍 Latest deploy log https://app.netlify.com/sites/text2quiz/deploys/62a5b07de7b32d0008ca8508
😎 Deploy Preview https://deploy-preview-2--text2quiz.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

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

Successfully merging this pull request may close these issues.

1 participant