Truncate does not work if liquid has non-breaking spaces in 9.11.10
See original GitHub issueHi,
Seems that the latest version does not truncate words.
var Liquid = require("liquidjs").Liquid
const engine = new Liquid({ strictVariables: true, strictFilters: true });
console.log(engine.parseAndRenderSync("{{huh | truncate: 11}}", {huh: "fdsafdsafdsafdsaaaaa"}))
Should result fdsafdsafds
, but results fdsafdsafdsafdsaaaaa
working version: 9.6.0 failing version: 9.11.10
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Non-breaking Spaces: How to Check Something You Cannot ...
The quickest way is to press Ctrl+Shift+Spacebar (or on a Mac, type Option+Spacebar). Alternatively, you can select 'Non-breaking Space' from ...
Read more >Preventing the Insertion of Non-Breaking Spaces
If you want to get rid of non-breaking spaces already in the document, then using Find and Replace is the easiest way: Press...
Read more >How to trim no-break space in Java? - string - Stack Overflow
If the question is about trimming no_break spaces then the accepted answer is wrong.
Read more >Removing NonBreaking Spaces - Xelplus - Leila Gharani
Sometimes the data you copy or import into Excel has stubborn spaces that can't be removed with the TRIM function.
Read more >How to remove all extra spaces including non-breaking ...
But when it comes to non-breaking spaces, the TRIM function just fails to do the job. The reason is that the TRIM function...
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
🎉 This issue has been resolved in version 9.11.11 🎉
The release is available on:
Your semantic-release bot 📦🚀
Thanks a lot @harttle! I debugged this yesterday and I have to say it was super hard since there were nothing visibly wrong with the liquid 😄