skip to Main Content

As below pattern (currentStore.*?}.*?=.*?useApp) which search for a pattern like this:

const {currentStore} = useApp();

But I need a pattern which search for a content where assignation of currentStore is happening like below(Not(currentStore.*?}.*?=.*?useApp)):

currentStore = await MultiStoreService.getStoreInfoByLocation(zipCode, subdistrict);

I mean conditions which do not follow above conditions
not getting an option, welcoming suggestion if proper solution is not available.
Even if suggestion over edition original question is also welcome.

2

Answers


  1. To match any line that assigns to currentStore:

    ^.*?currentStoreW+=[^;]+;
    

    See live demo.

    Login or Signup to reply.
  2. maybe this will help

    currentStore = awaits+[a-zA-Z_][a-zA-Z_0-9]*.[a-zA-Z_][a-zA-Z_0-9]*(.*);
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search