From 13d4791dfddeee78d63b661306f5e3f0ca88d13f Mon Sep 17 00:00:00 2001 From: "Ivan.Nginx" Date: Sun, 12 Mar 2017 17:13:40 +0300 Subject: [PATCH] FIX: not found `hexo-util` with base hexo install. Issue: #1490 Pull: #1438. --- scripts/tags/exturl.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/tags/exturl.js b/scripts/tags/exturl.js index 500447719..8f348c514 100644 --- a/scripts/tags/exturl.js +++ b/scripts/tags/exturl.js @@ -4,8 +4,9 @@ 'use strict'; -var util = require('hexo-util'); +var util = require(hexo.base_dir + 'node_modules/hexo/node_modules/hexo-util'); var htmlTag = util.htmlTag; +//console.log(util); var rUrl = /((([A-Za-z]{3,9}:(?:\/\/)?)(?:[-;:&=\+\$,\w]+@)?[A-Za-z0-9.-]+|(?:www.|[-;:&=\+\$,\w]+@)[A-Za-z0-9.-]+)((?:\/[\+~%\/.\w-_]*)?\??(?:[-\+=&;%@.\w_]*)#?(?:[.\!\/\\w]*))?)/;