mirror of
https://github.com/ankitects/anki.git
synced 2026-01-13 22:13:58 -05:00
./check
This commit is contained in:
parent
1cfe9d82d0
commit
71d6ed2748
2 changed files with 3 additions and 3 deletions
|
|
@ -110,9 +110,9 @@ impl DeckConfig {
|
|||
|
||||
/// Retrieve the FSRS 6.0 params, falling back on 5.0 or 4.x ones.
|
||||
pub fn fsrs_params(&self) -> &Vec<f32> {
|
||||
if self.inner.fsrs_params_6.len() > 0 {
|
||||
if !self.inner.fsrs_params_6.is_empty() {
|
||||
&self.inner.fsrs_params_6
|
||||
} else if self.inner.fsrs_params_5.len() > 0 {
|
||||
} else if !self.inner.fsrs_params_5.is_empty() {
|
||||
&self.inner.fsrs_params_5
|
||||
} else {
|
||||
&self.inner.fsrs_params_4
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
|||
|
||||
function update(e: Event): void {
|
||||
const input = e.target as HTMLInputElement;
|
||||
let newValue = input.value
|
||||
const newValue = input.value
|
||||
.replace(/ /g, "")
|
||||
.split(",")
|
||||
.filter((e) => e)
|
||||
|
|
|
|||
Loading…
Reference in a new issue