You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
196 B

4 years ago
  1. 'use strict'
  2. var r = /[A-Z]/g
  3. module.exports = function (a, b) {
  4. a = a.replace(r, replacer)
  5. b = b.replace(r, replacer)
  6. return a === b
  7. }
  8. function replacer (m) {
  9. return m.toLowerCase()
  10. }