Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

295
Vistas
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 la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda