pagarme-js icon indicating copy to clipboard operation
pagarme-js copied to clipboard

Internet explorer doesn't support method startsWith

Open leonardo-barbosa opened this issue 6 years ago • 1 comments

Description

Internet explorer doesn't support property or method 'startsWith': https://github.com/pagarme/pagarme-js/blob/master/lib/validations/validate/card/brand.js#L26

We can see the compatibility in https://developer.mozilla.org/pt-BR/docs/Web/JavaScript/Reference/Global_Objects/String/startsWith

My Setup

Windows 10 Internet Explorer 11

  • [x] I have tested with the latest version
  • [x] I can simulate the issue easily

Current Behavior

image

leonardo-barbosa avatar Nov 13 '17 12:11 leonardo-barbosa

https://github.com/pagarme/pagarme-js/pull/102

MarcoWorms avatar Nov 13 '17 15:11 MarcoWorms