mirror of
https://github.com/YGGverse/ggemtext.git
synced 2026-04-01 01:25:34 +00:00
update comments, create new string on parsed only
This commit is contained in:
parent
12091be50a
commit
04120b2c44
3 changed files with 10 additions and 7 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue