Browse Source

Merge pull request #160 from hubgit/closure-compiler

Fix compatibility with closure compiler
pull/165/head
Vitaly Puzrin 9 years ago
parent
commit
1b920c5430
  1. 4
      lib/common/utils.js
  2. 2
      package.json

4
lib/common/utils.js

@ -186,8 +186,8 @@ function isWhiteSpace(code) {
var UNICODE_PUNCT_RE = require('uc.micro/categories/P/regex'); var UNICODE_PUNCT_RE = require('uc.micro/categories/P/regex');
// Currently without astral characters support. // Currently without astral characters support.
function isPunctChar(char) { function isPunctChar(ch) {
return UNICODE_PUNCT_RE.test(char); return UNICODE_PUNCT_RE.test(ch);
} }

2
package.json

@ -27,7 +27,7 @@
"argparse": "~1.0.2", "argparse": "~1.0.2",
"entities": "~1.1.1", "entities": "~1.1.1",
"linkify-it": "~1.2.0", "linkify-it": "~1.2.0",
"mdurl": "~1.0.0", "mdurl": "~1.0.1",
"uc.micro": "^1.0.0" "uc.micro": "^1.0.0"
}, },
"devDependencies": { "devDependencies": {

Loading…
Cancel
Save