Skip to content

Commit e1ebf12

Browse files
committed
Allow blank locale
1 parent b297e7b commit e1ebf12

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "firebase-frameworks",
3-
"version": "0.10.2",
3+
"version": "0.10.3",
44
"description": "Experimental addon to the Firebase CLI to add web framework support",
55
"main": "dist/index.js",
66
"repository": "FirebaseExtended/firebase-framework-tools",

src/angular/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export const handle = async (req: Request, res: Response) => {
1515
if (
1616
typeof src !== "string" ||
1717
typeof locale !== "string" ||
18-
!LOCALE_FORMATS.some(it => locale.match(it)) ||
18+
!!locale && !LOCALE_FORMATS.some(it => locale.match(it)) ||
1919
!NG_BROWSER_OUTPUT_PATH
2020
) return res.sendStatus(404);
2121
const normalizedPath = normalize(join(NG_BROWSER_OUTPUT_PATH, locale, src));

0 commit comments

Comments
 (0)