项目原始demo,不改动
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.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

index.js 196 B

12345678910111213
  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. }