linting: no-useless-escape
This commit is contained in:
parent
1cd2227dcd
commit
6a9df349f3
8
main.js
8
main.js
|
@ -1952,8 +1952,8 @@ function rawline2html(line, index, options)
|
|||
{
|
||||
temp = line.substring(2);
|
||||
}
|
||||
temp = temp.replace(/\*\*([^\*]*)\*\*/g, "<span style='font-weight: bold;'>**$1**</span>");
|
||||
temp = temp.replace(/\*([^\*]*)\*/g, "<em>*$1*</em>");
|
||||
temp = temp.replace(/**([^\*]*)\*\*/g, "<span style='font-weight: bold;'>**$1**</span>");
|
||||
temp = temp.replace(/*([^\*]*)\*/g, "<em>*$1*</em>");
|
||||
|
||||
if (line.startsWith("* "))
|
||||
{
|
||||
|
@ -2019,7 +2019,7 @@ function rawline2html(line, index, options)
|
|||
line = line.replace(/(\[\[.*\]\])/g, "<u>$1</u>");
|
||||
|
||||
// comments
|
||||
line = line.replace(/<\!--(.*)/g, "<span style='color:lightgrey'><!--$1</span>");
|
||||
line = line.replace(/<!--(.*)/g, "<span style='color:lightgrey'><!--$1</span>");
|
||||
|
||||
if (line.includes("<!--") && !line.includes("-->"))
|
||||
{
|
||||
|
@ -2039,7 +2039,7 @@ function rawline2html(line, index, options)
|
|||
}
|
||||
}
|
||||
|
||||
line = line.replace(/\-\->/g, "--></span>");
|
||||
line = line.replace(/-->/g, "--></span>");
|
||||
|
||||
if (line.startsWith("// "))
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue