aboutsummaryrefslogtreecommitdiff
path: root/ext/js/data/anki-util.js
Commit message (Collapse)AuthorAge
* Improve note addability (#1440)toasted-nutbread2021-02-24
| | | | | | | | | | | * Add valid field * Add isNoteDataValid function * Update _areDefinitionsAddableForcedValue to return proper valid values * Refactor isAnkiConnected check * Force canAdd to false if not valid
* AnkiUtil (#1439)toasted-nutbread2021-02-24
* Add AnkiUtil * Update AnkiConnect to use AnkiUtil * Use AnkiUtil in AnkiNoteBuilder * Replace containsAnyMarker with AnkiUtil.stringContainsAnyFieldMarker * Add AnkiUtil.getFieldMarkers * Add fieldsObjectContainsMarker to AnkiUtil * Remove unused global * Remove unused parameter: enabled * Add cloneFieldMarkerPattern