preserve case when inline_script (#2991)

fixes #2989
This commit is contained in:
Alex Lam S.L
2018-03-11 05:11:12 +08:00
committed by GitHub
parent 7e00a12741
commit fc6ebd04a5
4 changed files with 24 additions and 4 deletions

View File

@@ -0,0 +1,21 @@
inline_script_off: {
beautify = {
inline_script: false,
}
input: {
console.log("</sCrIpT>");
}
expect_exact: 'console.log("</sCrIpT>");'
expect_stdout: "</sCrIpT>"
}
inline_script_on: {
beautify = {
inline_script: true,
}
input: {
console.log("</sCrIpT>");
}
expect_exact: 'console.log("<\\/sCrIpT>");'
expect_stdout: "</sCrIpT>"
}