...
 
Commits (2)
......@@ -39,4 +39,4 @@ testem.log
Thumbs.db
# browser-compat-data
src/assets/browser-compat-data
\ No newline at end of file
# src/assets/browser-compat-data
\ No newline at end of file
[submodule "src/assets/browser-compat-data"]
path = src/assets/browser-compat-data
url = https://github.com/mdn/browser-compat-data.git
......@@ -8,7 +8,7 @@ import { BcdData, BcdDataType } from './browser-compat-data';
export type DataValue = (string | { [key: string]: DataValue })[];
export interface ChangePage { path: string[]; fileName: string; data: BcdDataType; }
const pattern = /\.\/([^\/]+)\/(.*)/;
const pattern = /^\/([^\/]+)\/(.*)$/;
@Injectable({
providedIn: 'root',
......@@ -48,7 +48,7 @@ export class AppService {
parselist(data: string) {
const list = data.split('\n');
list.sort();
// list.sort();
// browser infos
for (const line of list) {
......@@ -60,11 +60,6 @@ export class AppService {
case 'browsers':
this.browsers.push(path);
break;
case '.vscode':
case 'schemas':
case 'package.json':
case 'test':
break;
default:
if (!this.data[group]) {
this.data[group] = [];
......
Subproject commit d5730e1c0408741ec8b07830635bc9fa25fd0076
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -2,5 +2,4 @@
#!/bin/bash
cd browser-compat-data
# find -L **/**.json > '../browser-compat-data.txt'
find . -type f \( -iname "*.json" \) > '../browser-compat-data.txt'
\ No newline at end of file
find . -type f \( -iname "*.json" \) -print0 | sort -z | xargs -r0 sha256sum | grep -oP '(?!.*browser-compat-data\/)(?!.*(\.vscode|package|test).*).*' > '../browser-compat-data.txt'
\ No newline at end of file