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

200
Visualizações
Is there any way to validate emojis without using regex with an unicode flag?

(:

I'm working on some input validation with js and one of the criteria is that the user is not allowed to input emojis.

This is the code that I was using originally is:

emojiValidation: function (userInput) {
   if (new RegExp("\\p{Extended_Pictographic}", 'u').test(userInput)) {
      return true;

   }
   
   return false;

This function is being called from a js file but the application is built using asp.net

The problem I'm facing is that IE does not recognise the Unicode flag, so is there an IE-friendly way to detect emojis?

IE console error

Thank you!

about 4 years ago · Juan Pablo Isaza
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