Skip to content

Commit b0c4d3a

Browse files
committed
use # instead . as literal indicator
1 parent 6b98ebd commit b0c4d3a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/compiler/compile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -549,7 +549,7 @@ function compileDirectives (attrs, options) {
549549
dirName = name.slice(config.prefix.length)
550550

551551
// check literal
552-
if (dirName.charAt(dirName.length - 1) === '.') {
552+
if (dirName.charAt(dirName.length - 1) === '#') {
553553
isLiteral = true
554554
dirName = dirName.slice(0, -1)
555555
} else {

test/unit/specs/compiler/compile_spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ if (_.inBrowser) {
5050

5151
it('normal directives', function () {
5252
el.setAttribute('v-a', 'b')
53-
el.innerHTML = '<p v-a="a" v-b="b">hello</p><div v-b.="b"></div>'
53+
el.innerHTML = '<p v-a="a" v-b="b">hello</p><div v-b#="b"></div>'
5454
var defA = { priority: 1 }
5555
var defB = { priority: 2 }
5656
var descriptorA = dirParser.parse('a')[0]

0 commit comments

Comments
 (0)