Commit 48c05669 authored by Zéfling's avatar Zéfling 🎨
Browse files

best update list

parent a176b086
[submodule "browser-compat-data"]
[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] = [];
......
This diff is collapsed.
......@@ -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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment