fil commited on
Commit
53f65a8
·
1 Parent(s): b0c5e2e

STRIP_ACCENTS to normalize

Browse files
Files changed (1) hide show
  1. docs/gazette.md +7 -5
docs/gazette.md CHANGED
@@ -57,11 +57,13 @@ I called this page “Gazette” because I was surprised that most of the corpus
57
 
58
  ```js echo
59
  const results = db.query(
60
- `SELECT year, COUNT() c
61
- FROM presse
62
- WHERE REGEXP_MATCHES(title, ?, 'i')
63
- GROUP BY year
64
- `,
 
 
65
  [search]
66
  );
67
  ```
 
57
 
58
  ```js echo
59
  const results = db.query(
60
+ `
61
+ SELECT year
62
+ , COUNT() c
63
+ FROM presse
64
+ WHERE REGEXP_MATCHES(STRIP_ACCENTS(title), STRIP_ACCENTS(?), 'i')
65
+ GROUP BY year;
66
+ `,
67
  [search]
68
  );
69
  ```