We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 656c31c commit 6473ff1Copy full SHA for 6473ff1
src/tools/collect-license-metadata/src/licenses.rs
@@ -42,6 +42,7 @@ pub(crate) struct License {
42
impl License {
43
fn simplify(&mut self) {
44
self.remove_copyright_prefixes();
45
+ self.remove_trailing_dots();
46
self.copyright.sort();
47
self.copyright.dedup();
48
}
@@ -62,4 +63,12 @@ impl License {
62
63
*copyright = stripped.into();
64
65
66
+
67
+ fn remove_trailing_dots(&mut self) {
68
+ for copyright in &mut self.copyright {
69
+ if copyright.ends_with('.') {
70
+ *copyright = copyright.trim_end_matches('.').to_string();
71
+ }
72
73
74
0 commit comments