mirror of
https://github.com/euzu/tuliprox.git
synced 2026-10-16 21:02:28 +02:00
- Added list template for sequences. List templates can only be used for sequences.
```yaml
templates:
- name: CHAN_SEQ
value:
- '(?i)\bUHD\b'
- '(?i)\bFHD\b'
```
The template can now be used for sequence
```yaml
sort:
groups:
order: asc
channels:
- field: caption
group_pattern: "!US_TNT_ENTERTAIN!"
order: asc
sequence:
- "!CHAN_SEQ!"
- '(?i)\bHD\b'
- '(?i)\bSD\b'
```
This commit is contained in:
@@ -65,7 +65,7 @@ pub fn generate_random_string(length: usize) -> String {
|
||||
#[cfg(test)]
|
||||
mod test {
|
||||
use std::collections::HashSet;
|
||||
use crate::utils::generate_random_string;
|
||||
use crate::utils::{generate_random_string, Capitalize};
|
||||
|
||||
#[test]
|
||||
fn test_generate_random_string() {
|
||||
@@ -75,4 +75,10 @@ mod test {
|
||||
}
|
||||
assert_eq!(strings.len(), 100);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_capitalize() {
|
||||
assert_eq!("hELLO".capitalize(), "Hello");
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user