File tree 5 files changed +8
-9
lines changed
5 files changed +8
-9
lines changed Original file line number Diff line number Diff line change 1
1
# To Do
2
2
3
- - [ ] library -> collection/pattern
4
3
- [ ] copy to clipboard for variations
5
4
- [ ] search.html
6
5
- [ ] test button for variations
11
10
- [ ] notes for variations
12
11
- [ ] tags for variations
13
12
- [ ] post to RegexPlanet
14
- - [ ] JSON schema for library
13
+ - [ ] JSON schema for patterns
15
14
- [ ] CI for yaml validated via json schema
16
15
- [ ] more regex in the catalog
17
16
- [ ] post to places besides RXP
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ export function Footer() {
14
14
{ link . label }
15
15
</ a > ) ;
16
16
if ( index < links . length - 1 ) {
17
- initial . push ( < span className = "mx-1" > |</ span > ) ;
17
+ initial . push ( < span className = "mx-1" key = "key{{index}}" > |</ span > ) ;
18
18
}
19
19
}
20
20
) ;
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import * as fsPromises from "node:fs/promises";
2
2
import * as path from "node:path" ;
3
3
import * as yaml from "js-yaml" ;
4
4
5
- const LIBRARY_DIR = path . join ( process . cwd ( ) , "library " ) ;
5
+ const PATTERN_DIR = path . join ( process . cwd ( ) , "patterns " ) ;
6
6
7
7
export type PatternEntry = {
8
8
title : string ;
@@ -26,9 +26,9 @@ async function initialize() {
26
26
if ( all . length > 0 ) {
27
27
return ;
28
28
}
29
- const fileNames = await fsPromises . readdir ( LIBRARY_DIR ) ;
29
+ const fileNames = await fsPromises . readdir ( PATTERN_DIR ) ;
30
30
for await ( const fileName of fileNames ) {
31
- const fullPath = path . join ( LIBRARY_DIR , fileName ) ;
31
+ const fullPath = path . join ( PATTERN_DIR , fileName ) ;
32
32
console . log ( `filename=${ fullPath } ` ) ;
33
33
34
34
const raw = await fsPromises . readFile ( fullPath , "utf-8" ) ;
Original file line number Diff line number Diff line change @@ -21,8 +21,8 @@ export const loader = async ({
21
21
22
22
export const meta : MetaFunction = ( ) => {
23
23
return [
24
- { title : "Library - Regex Zone" } ,
25
- { name : "description" , content : "A library of useful regular expressions " } ,
24
+ { title : "Patterns - Regex Zone" } ,
25
+ { name : "description" , content : "A collection of useful regular expression patterns " } ,
26
26
] ;
27
27
} ;
28
28
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ export default function Index() {
46
46
< >
47
47
< HeaderSearch />
48
48
< Container >
49
- < h1 className = "py-2" > Pattern Library </ h1 >
49
+ < h1 className = "py-2" > Patterns </ h1 >
50
50
< Table className = "table-striped table-hover" >
51
51
< thead >
52
52
< tr >
You can’t perform that action at this time.
0 commit comments