mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 06:22:22 -04:00
NF: test # / and ^ can remains at end of string
This commit is contained in:
parent
7397b9c0c4
commit
008a87a794
1 changed files with 2 additions and 2 deletions
|
@ -56,8 +56,8 @@ mod test {
|
|||
|
||||
#[test]
|
||||
fn name() {
|
||||
let mut field = NoteField::new(" # /^ t:e{s\"t} ");
|
||||
let mut field = NoteField::new(" # /^ t:e{s\"t} field name #/^ ");
|
||||
field.fix_name();
|
||||
assert_eq!(&field.name, "test");
|
||||
assert_eq!(&field.name, "test field name #/^");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue