File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed 
packages/form-actions-nuxt/src/runtime Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ export const NITRO_LOADER_PREFIX = "_@loader_" as const
33export  const  GENERATED_TEXT  =  "/** This file is auto-generated by the form-actions module. /!\\ Do not modify it manually ! */ \n" 
44
55export  function  getActionRoute ( actionPath : string )  { 
6-   const  actionRegex  =  / a c t i o n s \/ ( .* ?) \. t s / 
6+   const  actionRegex  =  / . * a c t i o n s [ \/ \\ ] ( .* ?) \. t s / 
77  const  actionRoute  =  actionRegex . exec ( actionPath ) ?. [ 1 ] 
88  if  ( ! actionRoute )  throw  new  Error ( `Could not parse action route from ${ actionPath }  ` ) 
99  return  actionRoute 
@@ -12,7 +12,7 @@ export function getActionRoute(actionPath: string) {
1212export  const  addLoaderPrefix  =  ( route : string )  =>  `/${ NITRO_LOADER_PREFIX }  /${ route }  ` 
1313
1414export  function  getLoaderRoute ( path : string )  { 
15-   const  regex  =  / s e r v e r \/ \. g e n e r a t e d \/ \. l o a d e r \/ ( .* ?) \. g e t \. t s / 
15+   const  regex  =  / s e r v e r [ \/ \\  ] \ .g e n e r a t e d [ \/ \\  ] \ .l o a d e r [ \/ \\ ] ( .* ?) \. g e t \. t s / 
1616  const  loaderRoute  =  regex . exec ( path ) ?. [ 1 ] 
1717  if  ( ! loaderRoute )  throw  new  Error ( `Could not parse loader route from ${ path }  ` ) 
1818  return  addLoaderPrefix ( loaderRoute ) 
File renamed without changes.
Original file line number Diff line number Diff line change 55    "paths" : {
66      "#imports" : [" ./node_modules/nuxt/app.d.ts"  ],
77      "#app" : [" ./node_modules/nuxt/dist/app"  ],
8-       "#build/types/loader-types.d.ts" : [" ./packages/form-actions-nuxt/src/runtime/virtual: loader-types.d.ts"  ]
8+       "#build/types/loader-types.d.ts" : [" ./packages/form-actions-nuxt/src/runtime/virtual. loader-types.d.ts"  ]
99    }
1010  },
1111  "exclude" : [
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments