diff options
author | 2021-08-26 15:02:38 -0700 | |
---|---|---|
committer | 2021-08-26 15:03:21 -0700 | |
commit | 2e8db7ad2384b756894eac6be72bcf720f7f28fa (patch) | |
tree | 074ff88116520c3484210a0b94331b0f2b81581b /examples/docs/src/components/util.ts | |
parent | b7ada11ddbabe4dd2f0798e140e5b280de4d6952 (diff) | |
download | astro-2e8db7ad2384b756894eac6be72bcf720f7f28fa.tar.gz astro-2e8db7ad2384b756894eac6be72bcf720f7f28fa.tar.zst astro-2e8db7ad2384b756894eac6be72bcf720f7f28fa.zip |
add algolia and cleanup docs readme
Diffstat (limited to 'examples/docs/src/components/util.ts')
-rw-r--r-- | examples/docs/src/components/util.ts | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/examples/docs/src/components/util.ts b/examples/docs/src/components/util.ts deleted file mode 100644 index 0ec91bce0..000000000 --- a/examples/docs/src/components/util.ts +++ /dev/null @@ -1,4 +0,0 @@ -export function getLanguageFromURL(pathname: string) { - const langCodeMatch = pathname.match(/\/([a-z]{2}-?[A-Z]{0,2})\//); - return langCodeMatch ? langCodeMatch[1] : 'en'; -} |