Skip to content
New issue

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

[task] Regex for Console.log should be more regress #33236

Open
srix opened this issue May 7, 2024 · 0 comments
Open

[task] Regex for Console.log should be more regress #33236

srix opened this issue May 7, 2024 · 0 comments
Labels
Task A simple Todo Workflows Pod For all issues related to the Workflows feature Workflows

Comments

@srix
Copy link
Contributor

srix commented May 7, 2024

In TriggerService.ts the following code should be re written so that regex only replaces console.

const jsObjectToCode = (script: string) => {
const code = script.replace(/export default/g, "");
// remove console from the code to appsmith
return code.replace(/console./g, "appsmith.");
};

@srix srix added the Workflows Pod For all issues related to the Workflows feature label May 7, 2024
@Nikhil-Nandagopal Nikhil-Nandagopal added the Task A simple Todo label May 7, 2024
@github-actions github-actions bot removed the Workflows Pod For all issues related to the Workflows feature label May 7, 2024
@srix srix changed the title Regex for Console.log should be more regress [task] Regex for Console.log should be more regress May 7, 2024
@srix srix added Workflows Pod For all issues related to the Workflows feature Workflows labels May 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Task A simple Todo Workflows Pod For all issues related to the Workflows feature Workflows
Projects
None yet
Development

No branches or pull requests

2 participants