question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Bad parsing when bound data contains a backtick

See original GitHub issue

Vue.js version

1.0.26

Reproduction Link

http://codepen.io/sirlancelot/pen/zBPVBo?editors=1010#0

Steps to reproduce

  • Bind an inline object with a value containing the backtick character

What is Expected?

  • Object is reproduced properly in the data model

What is actually happening?

  • scope. is being added to everything between the backtick and an escaped quote.

We’re using props to curry an initial data model from the server to the browser. We’re doing it in a manner similar to the example shown in the CodePen. Basically, our root Vue instance contains a list of props that will show up on the element and are populated by the server.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

10reactions
skyroniccommented, Jul 22, 2016
0reactions
heygambocommented, Sep 27, 2016

@skyronic thx! I use http://rubular.com/ a lot. It tests with the ruby lib but works fine too.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Problem with backticks in shellscript - Stack Overflow
In your first example echo is parsing the parameters - the shell never sees them. In the second example it works because the...
Read more >
Template literals (Template strings) - JavaScript | MDN
Template literals are literals delimited with backtick (`) characters, allowing for multi-line strings, string interpolation with embedded ...
Read more >
Expression Deparsing - Rdrr.io
Expression Deparsing. Description. Turn unevaluated expressions into character strings. Usage. deparse(expr, width.cutoff = 60L, backtick = mode(expr) %in% ...
Read more >
Is it wrong to use backticks (``) everywhere? : r/javascript
We have eslint which checks if there is variable interpolation ... It would take parsing millions of strings to get a measurable difference, ......
Read more >
(The only proper) PDO tutorial - Treating PHP Delusions
When in emulation mode (which is on by default), PDO substitutes placeholders with actual data, instead of sending it separately. And with "lazy"...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found