Boyu Guo
Boyu Guo
参考Highlight.js主页的用法: https://github.com/highlightjs/highlight.js ``` const hljs = require('highlight.js/lib/core'); hljs.registerLanguage('xml', require('highlight.js/lib/languages/xml')); const highlightedCode = hljs.highlight('Hello World!', {language: 'xml'}).value ``` 我实在是不需要语言高亮。将`import hljs from 'highlight.js'`替换为`import * as hljs from 'highlight.js/lib/core'`之后,js文件从1M减小到了100K。 另外Highlight.js官方有一个vue plugin: https://github.com/highlightjs/vue-plugin
https://github.com/colinmarc/hdfs/blob/1dee01162328699c8034e22be55f8876bba76587/internal/rpc/namenode.go#L171 `%v` should fix it.
It seems that when executing `lx delete info-hash|url` the search stops after first match.
Don't try to test node speed when mix --node=fast with --continue.
``` func TestPatchMakeOutOfRangePanic(t *testing.T) { text1 := ` 1111111111111 000000 ------------- ------ xxxxxxxxxxxxx ------ xxxxxxxxxxxxx ------ xxxxxxxxxxxxx xxxxxx xxxxxxxxxxxxx ...... xxxxxxxxxxxxx 111111 xxxxxxxxxxxxx ?????? xxxxxxxxxxxxx 333333 xxxxxxxxxxxxx 555555 xxxxxxxxxx xxxxx...
This PR should fix #127 The new code uses same implementation as the Java version: https://github.com/google/diff-match-patch/blob/62f2e689f498f9c92dbc588c58750addec9b1654/java/src/name/fraser/neil/plaintext/diff_match_patch.java#L545 https://github.com/google/diff-match-patch/blob/62f2e689f498f9c92dbc588c58750addec9b1654/java/src/name/fraser/neil/plaintext/diff_match_patch.java#L568