update comments, create new string on parsed only

This commit is contained in:
yggverse 2024-12-03 19:04:17 +02:00
parent 12091be50a
commit 04120b2c44
3 changed files with 10 additions and 7 deletions

View file

@ -18,10 +18,10 @@ impl Inline {
RegexMatchFlags::DEFAULT,
);
// Detect value
let value = regex.get(1)?;
// Extract formatted value
let value = regex.get(1)?.trim();
if value.trim().is_empty() {
if value.is_empty() {
return None;
}