Skip to content

Commit

Permalink
shortcodes: accept [0-9+] too.
Browse files Browse the repository at this point in the history
  • Loading branch information
kivikakk committed Jul 10, 2024
1 parent 22a59cf commit 91b6efd
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 29 deletions.
2 changes: 1 addition & 1 deletion src/scanners.re
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ pub fn shortcode(s: &[u8]) -> Option<usize> {
let mut marker = 0;
let len = s.len();
/*!re2c
[A-Za-z_-]+ [:] { return Some(cursor); }
[A-Za-z0-9+_-]+ [:] { return Some(cursor); }
* { return None; }
*/
}
Expand Down
52 changes: 24 additions & 28 deletions src/scanners.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 91b6efd

Please sign in to comment.