diff --git a/Cargo.lock b/Cargo.lock index de8dfa8..6e8863e 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -67,7 +67,7 @@ checksum = "f538837af36e6f6a9be0faa67f9a314f8119e4e4b5867c6ab40ed60360142519" [[package]] name = "as3_parser" -version = "1.0.4" +version = "1.0.5" dependencies = [ "bitflags", "by_address", diff --git a/crates/parser/Cargo.toml b/crates/parser/Cargo.toml index 3b75221..207bd22 100644 --- a/crates/parser/Cargo.toml +++ b/crates/parser/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "as3_parser" -version = "1.0.4" +version = "1.0.5" edition = "2021" authors = ["hydroper "] repository = "https://github.com/hydroper/as3parser" diff --git a/crates/parser/parser/parser.rs b/crates/parser/parser/parser.rs index d9afae0..664a137 100644 --- a/crates/parser/parser/parser.rs +++ b/crates/parser/parser/parser.rs @@ -4753,7 +4753,7 @@ impl<'input> Parser<'input> { let (class_name_and_description, c_location) = join_asdoc_content(building_content); let location = tag_location.combine_with(c_location.clone()); - let class_name_and_description = regex_captures!(r"^([^\s]+)(\s.*)", &class_name_and_description); + let class_name_and_description = regex_captures!(r"^([^\s]+)(\s.*)?", &class_name_and_description); if let Some((_, class_name, description)) = class_name_and_description { let description = description.trim().to_owned(); diff --git a/demo/dist/as3_parser_demo_bg.wasm b/demo/dist/as3_parser_demo_bg.wasm index f2f1406..58d9b0c 100644 Binary files a/demo/dist/as3_parser_demo_bg.wasm and b/demo/dist/as3_parser_demo_bg.wasm differ