willong
willong
https://github.com/wvv8oo/lunar/blob/5dfe9f1306253548622cd040234a17eb3cc2c05e/lib/chinese-lunar.js#L627 感觉像是这行代码是优先考虑了AMD模式,但是在小程序的框架中的define函数和AMD中define函数不一样,所以会导致里面的回调不执行,也就引入不了。我提了个PR增加了更严格的AMD模式检查,规避了这种情况。
link: issue; #13
生成的.vue文件里的data都是这样 ``` data() { return { data: { fetchEnd: false, dealId: '', detail: {}, dealShareImage: '', dealShareCardImage: '', isShowSharePopup: false, items: [], showFloatWindow: false, dayDealsEndTime: null, useChinese: false, isSubscribed: false...
``` js const testHtml = '→→→→→→more←←←←←←' const result = insane(testHtml) console.log({result}) // it will be '', not the result i expect '→→→→→→more←←←←←←' ```