fishpi 0.0.12 → 0.0.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/src/utils.js +4 -3
- package/package.json +1 -1
package/lib/src/utils.js
CHANGED
|
@@ -108,10 +108,11 @@ function analyzeMetalAttr(m) {
|
|
|
108
108
|
if (typeof m.attr != 'string')
|
|
109
109
|
return m;
|
|
110
110
|
var attr = m.attr.split('&');
|
|
111
|
-
m.attr
|
|
111
|
+
var src = m.attr;
|
|
112
|
+
m.attr = { src: src };
|
|
112
113
|
attr.forEach(function (a) { return m.attr[a.split('=')[0]] = a.split('=')[1]; });
|
|
113
|
-
m.url = "https://fishpi.cn/gen?txt=".concat(m.description, "&").concat(m.attr.
|
|
114
|
-
m.icon = "https://fishpi.cn/gen?txt=&".concat(m.attr.
|
|
114
|
+
m.url = "https://fishpi.cn/gen?txt=".concat(m.description, "&url=").concat(m.attr.src);
|
|
115
|
+
m.icon = "https://fishpi.cn/gen?txt=&".concat(m.attr.src);
|
|
115
116
|
return m;
|
|
116
117
|
}
|
|
117
118
|
exports.analyzeMetalAttr = analyzeMetalAttr;
|