update to v2.3.0
add `.rep()` & `.replaceChildren()` function update `.app()` & `.append()` to support rest params update build target to ES6 fix comment color on demo page add (more) tests
This commit is contained in:
@@ -148,6 +148,10 @@
|
||||
/\`[^`]+\`/g,
|
||||
(val) => `<span class="code-str">${val}</span>`,
|
||||
)
|
||||
.replace(
|
||||
/\/\/.*/g,
|
||||
(val) => `<span class="code-cmnt">${val}</span>`,
|
||||
)
|
||||
.replace(/\.\w+/g, (val) =>
|
||||
val !== ".js"
|
||||
? `<span class="code-func">${val}</span>`
|
||||
|
Reference in New Issue
Block a user