|
|
@ -1,10 +1,9 @@ |
|
|
|
// Utilities
|
|
|
|
//
|
|
|
|
|
|
|
|
import mdurl from 'mdurl' |
|
|
|
import ucmicro from 'uc.micro' |
|
|
|
import * as mdurl from 'mdurl' |
|
|
|
import * as ucmicro from 'uc.micro' |
|
|
|
import { decodeHTML } from 'entities' |
|
|
|
import UNICODE_PUNCT_RE from 'uc.micro/categories/P/regex.js' |
|
|
|
|
|
|
|
function _class (obj) { return Object.prototype.toString.call(obj) } |
|
|
|
|
|
|
@ -184,7 +183,7 @@ function isWhiteSpace (code) { |
|
|
|
|
|
|
|
// Currently without astral characters support.
|
|
|
|
function isPunctChar (ch) { |
|
|
|
return UNICODE_PUNCT_RE.test(ch) |
|
|
|
return ucmicro.P.test(ch) |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|