diff --git a/app/server/appsmith-server/src/main/java/com/appsmith/server/services/LayoutActionServiceImpl.java b/app/server/appsmith-server/src/main/java/com/appsmith/server/services/LayoutActionServiceImpl.java index e6909a7b86..e134de092f 100644 --- a/app/server/appsmith-server/src/main/java/com/appsmith/server/services/LayoutActionServiceImpl.java +++ b/app/server/appsmith-server/src/main/java/com/appsmith/server/services/LayoutActionServiceImpl.java @@ -51,7 +51,7 @@ public class LayoutActionServiceImpl implements LayoutActionService { * {{JSON.stringify(fetchUsers)}} * This pattern should return ["JSON.stringify", "fetchUsers"] */ - private final Pattern pattern = Pattern.compile("[a-zA-Z0-9._]+"); + private final Pattern pattern = Pattern.compile("[a-zA-Z_][a-zA-Z0-9._]*"); /* * To replace fetchUsers in `{{JSON.stringify(fetchUsers)}}` with getUsers, the following regex is required :