@whotracksme/reporting 5.1.20 β†’ 5.1.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,15 @@
1
+ # v5.1.21 (Mon Aug 26 2024)
2
+
3
+ #### πŸ› Bug Fix
4
+
5
+ - Extend the list of public search engines [#89](https://github.com/whotracksme/webextension-packages/pull/89) ([@philipp-classen](https://github.com/philipp-classen))
6
+
7
+ #### Authors: 1
8
+
9
+ - Philipp Claßen ([@philipp-classen](https://github.com/philipp-classen))
10
+
11
+ ---
12
+
1
13
  # v5.1.20 (Thu Aug 01 2024)
2
14
 
3
15
  #### πŸ› Bug Fix
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@whotracksme/reporting",
3
- "version": "5.1.20",
3
+ "version": "5.1.21",
4
4
  "type": "module",
5
5
  "description": "",
6
6
  "scripts": {
@@ -17,6 +17,11 @@ import logger from './logger';
17
17
  * some optimizations (e.g. quorum checks can be skipped).
18
18
  */
19
19
  const URL_PATTERNS = [
20
+ {
21
+ category: 'search-gos',
22
+ regexp: /^https:[/][/]scholar[.]google[.][^/]+[/]scholar.*[?&]q=/,
23
+ prefix: 'scholar?q=',
24
+ },
20
25
  {
21
26
  category: 'search-goi',
22
27
  regexp:
@@ -39,6 +39,31 @@ describe('#UrlAnalyzer', function () {
39
39
  });
40
40
 
41
41
  for (const [expectedType, examples] of Object.entries({
42
+ 'search-gos': {
43
+ 'https://scholar.google.com/scholar?hl=de&as_sdt=0,5&q=biontech+pennsylvania':
44
+ {
45
+ query: 'biontech pennsylvania',
46
+ doublefetchUrl:
47
+ 'https://scholar.google.com/scholar?q=biontech+pennsylvania',
48
+ },
49
+ 'https://scholar.google.de/scholar?hl=de&as_sdt=0%2C5&q=gauss-newton+algorithm&btnG=':
50
+ {
51
+ query: 'gauss-newton algorithm',
52
+ doublefetchUrl:
53
+ 'https://scholar.google.de/scholar?q=gauss-newton+algorithm',
54
+ },
55
+ 'https://scholar.google.de/scholar?hl=de&as_sdt=0%2C5&q=llm&btnG=':
56
+ {
57
+ query: 'llm',
58
+ doublefetchUrl: 'https://scholar.google.de/scholar?q=llm',
59
+ },
60
+ 'https://scholar.google.de/scholar?hl=de&as_sdt=0%2C5&q=llm+mistral&btnG=':
61
+ {
62
+ query: 'llm mistral',
63
+ doublefetchUrl:
64
+ 'https://scholar.google.de/scholar?q=llm+mistral',
65
+ },
66
+ },
42
67
  'search-goi': {
43
68
  'https://www.google.com/search?q=cat&sca_upv=1&hl=de&iflsig=ANes7DEAAAAAZhQcpulunO2PBVNfBmacf9LnDZWNgzgJ&uact=5&udm=2':
44
69
  {