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.

String concatenation doesn't seem to work inside function calls

See original GitHub issue
{% set url = media('/docs/privacy/' + language + '.html') %}

The above expression throws a parse error locally:

parseSignature: expected comma after expression

Investigating to try to figure out what might be wrong.

Issue Analytics

  • State:closed
  • Created 10 years ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

6reactions
carljmcommented, May 11, 2016

The + operator should work fine.

0reactions
pierre-bcommented, May 11, 2016

Hi guys, do you know what is the operator to concatenate strings? Looks like the only way is to use the “replace” filter: ‘my string _str2’ | replace(‘_str2’, string2)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why doesn't my Java string concatenation work?
You need to reassign the concatenated value to a string object. Simply calling fileText.concat(inputLine); will not change the value in fileText ...
Read more >
String.Concat Method (System) | Microsoft Learn
The method concatenates each object in values ; it does not add any delimiters. To specify a delimiter between each member of values...
Read more >
4 ways to concatenate Strings in Java [Example and ... - Java67
4 ways to concatenate Strings in Java [Example and Performance] · 1. String Concatenation using + Operator · 2. Using concat() method from...
Read more >
Handling text — strings in JavaScript - Learn web development
Concatenate just means "join together". To join together strings in JavaScript you can use a different type of string, called a template literal ......
Read more >
Chapter 4 - String and Writing Programs - Invent with Python
In Python, we work with little chunks of text called string values (or simply ... the way we make text appear on the...
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