Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

294
Visualizações
How to include a special character in a text variable (in JS / app scripts)?

I am using a Google app script to automatically populate a team vacation calendar. It automatically adds events to the vacation calendar based on keywords. Here is how the keywords are defined:

let KEYWORDS = ['vacation', 'ooo', 'out of office', 'offline', 'holiday', 'holidays', 'out', 'C-Day'];

It works fine except for C-Day. (When someone creates an event named "C-Day" in their calendar it is not recognized by the script.)

I have tried 'C-Day', 'C\-Day', 'C-Day', 'C-Day', 'C&#\8\2\1\1;Day' and some variations on those without success.

This feels like a novice mistake on my part, but I can't figure it out. Any help is appreciated.

FYI - I am using these instructions... https://developers.google.com/apps-script/overview and copied/modified this AppScript project... https://script.google.com/home/projects/1jvPSSwJcuLzlDLDy2dr-qorjihiTNAW2H6B5k-dJxHjEPX6hMcNghzSh/edit

about 4 years ago · Santiago Trujillo
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda