File tree Expand file tree Collapse file tree 4 files changed +5
-4
lines changed
packages/app/integration-tests/tests
standalone-packages/codesandbox-browserfs/src/backend Expand file tree Collapse file tree 4 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,8 @@ const SANDBOXES = [
2323 '6w66jzw3mn' , // material-design & preact
2424 '4j7m47vlm4' , // material-ui
2525 'github/cssinjs/egghead/tree/master/from-sass-to-cssinjs/templates-and-variables' , // postcss egghead
26+ 'xp5qy8r93q' , // babel example
27+ 'angular' , // angular template
2628] ;
2729
2830function pageLoaded ( page ) {
Original file line number Diff line number Diff line change @@ -165,7 +165,7 @@ export default class CodeSandboxFS extends SynchronousFileSystem
165165
166166 if ( ! moduleInfo ) {
167167 const modulesStartingWithPath = Object . keys ( tModules ) . filter (
168- ( pa : string ) => pa . startsWith ( p + '/' ) || pa === p
168+ ( pa : string ) => pa . startsWith ( p . endsWith ( '/' ) ? p : p + '/' ) || pa === p
169169 ) ;
170170
171171 if ( modulesStartingWithPath . length > 0 ) {
@@ -239,9 +239,8 @@ export default class CodeSandboxFS extends SynchronousFileSystem
239239
240240 const p = path . endsWith ( '/' ) ? path : path + '/' ;
241241
242- const pathsInDir = paths . filter (
243- ( secondP : string ) => secondP . startsWith ( p + '/' ) || secondP === p
244- ) ;
242+ const pathsInDir = paths . filter ( ( secondP : string ) => secondP . startsWith ( p ) ) ;
243+
245244 if ( pathsInDir . length === 0 ) {
246245 return [ ] ;
247246 }
You can’t perform that action at this time.
0 commit comments