We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The idea will be to allow users to define whenever they want line breaks ignored or not when creating all the selection options.
Requested by @lolergb
Some pseudo-code provided for this feature.
let inputSearch = "Byeeeee"; let changeText = "Bye"; let search = new RegExp(inputSearch, 'gi'); function changeContent(node, text) { let font = node.fontName; figma .loadFontAsync(font) .then(() => { node.characters = text; }) .catch((e) => { console.info(e); }); console.log(node.characters); } function myTrim(x) { return x.replace(/\s+/g, ' '); } figma.currentPage.findAll((node) => { if (node.characters && myTrim(node.characters).match(search)) { console.log(node.characters) //changeContent(node, changeText); } })
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The idea will be to allow users to define whenever they want line breaks ignored or not when creating all the selection options.
Requested by @lolergb
Some pseudo-code provided for this feature.
The text was updated successfully, but these errors were encountered: