Open mandricore opened 7 years ago
You are mixing equery selector with squery replacement selector. There is not option allowing you to mix them at the moment. If you want to use equery to select, you must use its replacement syntax. Eg.
const grasp = require("grasp");
let code = `var a = 1 + 2`;
const replacer = grasp.replace('equery', '$a + $b', '{{a}} - {{b}}');
let processed = replacer(code);
console.log(processed);
.
Actually, I will keep this open as a documentation issue
I'm trying to make the following work, taking the examples from your main docs on lib usage
This works
But here I get an error
Why is
.l
not working? deprecated?Test runner result: