RumovZ
91873d68eb
Fix RE in to_custom_re of text.rs
...
Match every single (potentially escaped) character of the string, so
they can be escaped properly.
2020-11-17 15:39:54 +01:00
RumovZ
8c02c6e205
Split unescaping between parser and writer
...
* Unescape wildcards in writer instead of parser.
* Move text conversion functions to text.rs.
* Implicitly norm when converting text.
* Revert to using collection when comparing tags but add escape support.
2020-11-17 12:49:37 +01:00
RumovZ
7c5cf6d18b
Use enforced re to parse deck
...
Fix write_deck not recognising escaped deck name separators:
\:\: -> ::
2020-11-15 21:32:36 +01:00
RumovZ
a6628709c5
Annotate RegEx for invalid-escape check
2020-11-15 14:22:16 +01:00
RumovZ
a16d271eb0
Extend tests for new search parsing
...
(Also fix indentation)
2020-11-15 12:00:20 +01:00
RumovZ
ae01a5b3a2
Fix escape check for escaped backslash
2020-11-15 11:57:11 +01:00
RumovZ
63cc877023
Move whitespace check for tags from to sqlwriter
...
Instead of not parsing a tag containing whitespace, check for spaces
when writing sql and if there are any, explicitly match nothing.
2020-11-15 11:54:21 +01:00
RumovZ
57787368a1
Always use regex for tag search
...
Don't distinguish between the glob and no-glob cases when comparing
tags but always use regexp. Thus, avoid problems with SQL wildcards in
registered tags.
2020-11-15 09:52:00 +01:00
RumovZ
d1ee507b3a
Update frontend test to new escape handling
2020-11-15 09:39:10 +01:00
RumovZ
8d24fb89bf
Update frontend search escapes to new parsing
2020-11-14 20:37:40 +01:00
RumovZ
9e53481003
Fix tests for new search parsing (and reformat)
2020-11-14 19:13:09 +01:00
RumovZ
836977aac8
Fix whitespace in write_tag and parser/whitespac0
2020-11-14 19:10:56 +01:00
RumovZ
3949996728
For deck searches, unescape quotes only
...
For now, revert to the old handling of deck names using text_to_re from
text.rs and have parser.rs only unescape quotes.
2020-11-14 19:06:37 +01:00
RumovZ
b186e61e54
Fix 'escaped' parser for empty string
...
Fix a bug where 'escaped' parsers (nom) accepted the empty
string by wrapping them in 'verify' parsers.
2020-11-14 18:28:24 +01:00
RumovZ
0cff65e5a8
Fix bugs and inconsistencies in the search parser
2020-11-12 17:27:50 +01:00
Damien Elmes
92e516c6b0
Merge pull request #811 from ianki/media_filters_head
...
Add hooks for filtering media.
2020-11-09 20:41:56 +10:00
ianki
c2901e4859
Add hooks for filtering media.
2020-11-09 02:12:23 -08:00
Damien Elmes
20f0c887eb
Merge pull request #814 from k12ish/master
...
Improve compatibility with graphics pad/touchscreen
2020-11-09 19:42:41 +10:00
Damien Elmes
b38218f7c6
Merge pull request #813 from RumovZ/fix-search-combos
...
Fix clicking filters with keyboard modifiers
2020-11-09 19:42:13 +10:00
Damien Elmes
e5059a5dff
update Windows CI
2020-11-09 19:09:23 +10:00
k12ish
cc5cb1eab6
Update CONTRIBUTORS
2020-11-08 18:49:12 +00:00
k12ish
da7063f16b
Revert "Update CONTRIBUTORS"
...
This reverts commit 78168c72ec
.
2020-11-08 18:38:02 +00:00
k12ish
78168c72ec
Update CONTRIBUTORS
2020-11-08 18:34:30 +00:00
k12ish
b592e20a3c
Improve compatibility with graphics pad/touchscreen
...
When using anki with a graphics pad, text is often selected on accident. This snippet of CSS will fix that issue
2020-11-08 18:14:37 +00:00
RumovZ
557616f36a
Fix clicking filters with keyboard modifiers
2020-11-08 11:05:11 +01:00
Damien Elmes
37695da713
fix missing QAudioDeviceInfo on macOS
2020-11-06 12:01:37 +10:00
Damien Elmes
ecab88d8c5
Merge pull request #808 from sobjornstad/reposition-highlight
...
Start with default value in reposition spinbox selected
2020-11-06 11:09:15 +10:00
Damien Elmes
96f77b4b5e
Merge pull request #805 from cecini/duecounts
...
align rslib get_subnode impl with anki pythonapi find_deck_in_tree
2020-11-06 10:57:49 +10:00
Damien Elmes
c157ccb3f5
handle notes with invalid utf8
2020-11-06 10:21:51 +10:00
Damien Elmes
96f6b94dba
disable Windows CI for now
2020-11-05 21:00:02 +10:00
Damien Elmes
61bf2f80eb
doc updates
2020-11-05 20:25:48 +10:00
Damien Elmes
c42325cb49
fix aqt version requirement; use py3 instead of cp38 tag
2020-11-05 20:25:08 +10:00
Damien Elmes
abf34b561e
Revert "remove gif-lfs"
...
This reverts commit 1c5b82ff75
.
Issue fixed.
2020-11-05 18:46:22 +10:00
Damien Elmes
bbdfd61eb8
packages.bzl -> repos.bzl; update rules_rust
2020-11-05 14:22:45 +10:00
Damien Elmes
1c5b82ff75
remove gif-lfs
...
https://github.com/actions/virtual-environments/issues/1983
2020-11-05 12:31:14 +10:00
Damien Elmes
6f95a7f3e2
migrate away from insecure add-path statement
2020-11-05 12:27:36 +10:00
Damien Elmes
38e4428c4a
gettext and bazelisk come standard on macOS runner
2020-11-05 12:24:10 +10:00
Damien Elmes
2efcf8a9d0
show Bazel timestamps in CI
2020-11-05 12:23:06 +10:00
Damien Elmes
9f215e2f7a
experiment with repo/disk cache instead of output root
...
edit to trigger rebuild
2020-11-05 12:07:01 +10:00
Damien Elmes
3f47ff9abd
fix missing buildinfo on Windows
2020-11-05 11:21:27 +10:00
Damien Elmes
29ae7480f2
cleanups
2020-11-05 11:21:13 +10:00
Damien Elmes
95317a4f17
fix backend_pb2 race
2020-11-05 11:02:40 +10:00
Damien Elmes
264dd8f1ea
fix external consumption of ts rules, and simplify import path
2020-11-05 11:01:52 +10:00
Damien Elmes
f93f01b3e9
support user bazelrc
2020-11-04 22:11:28 +10:00
Damien Elmes
ecfeb71195
fix tests on Linux
2020-11-04 21:39:41 +10:00
Damien Elmes
927a44e36e
unused import
2020-11-04 21:04:42 +10:00
Damien Elmes
02dfc19250
hash the lock files
...
GitHub's cache is not a great fit for Bazel, but this will do for now
2020-11-04 21:02:10 +10:00
Damien Elmes
f25af77122
fixes for consuming rust lib from external repo
2020-11-04 19:20:49 +10:00
Damien Elmes
c179a2b45b
extract version from defs.bzl; gate buildhash on optimized build
2020-11-04 14:02:08 +10:00
Damien Elmes
7cd2e9618f
doc updates
2020-11-04 14:01:14 +10:00