Bad parsing when bound data contains a backtick
See original GitHub issueVue.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:
- Created 7 years ago
- Comments:5 (1 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@LinusBorg - I used https://www.debuggex.com/ very handy!
@skyronic thx! I use http://rubular.com/ a lot. It tests with the ruby lib but works fine too.