Skip to content

Commit

Permalink
test: update san-html-cases for data-escape
Browse files Browse the repository at this point in the history
  • Loading branch information
harttle committed Dec 18, 2020
1 parent e91da37 commit 59e9a6c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -75,7 +75,7 @@
"jest": "^26.2.2",
"mustache": "^4.0.1",
"san": "^3.10.0",
"san-html-cases": "^3.10.4",
"san-html-cases": "3.10.5",
"san-ssr-target-fake-cmd": "^1.0.0",
"san-ssr-target-fake-esm": "^1.0.0",
"semantic-release": "^17.1.1",
Expand Down
1 change: 0 additions & 1 deletion src/compilers/anode-compiler.ts
Expand Up @@ -170,7 +170,6 @@ export class ANodeCompiler<T extends 'none' | 'typed'> {

private createDataComment () {
const dataExpr = BINARY(new HelperCall('getRootCtx', [I('ctx')]), '.', I('data'))
// TODO add case for san-html-cases
return [
createHTMLLiteralAppend('<!--s-data:'),
createHTMLExpressionAppend(new RegexpReplace(new JSONStringify(dataExpr), '(?<=-)-', L('\\-'))),
Expand Down

0 comments on commit 59e9a6c

Please sign in to comment.