From 652a26d5d903043aad6691c32380055295a0becb Mon Sep 17 00:00:00 2001 From: LoveSy Date: Tue, 2 Apr 2024 16:19:50 +0800 Subject: [PATCH] Fix comment of sepolicy --- native/src/sepolicy/statement.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/native/src/sepolicy/statement.rs b/native/src/sepolicy/statement.rs index b8843cb84..014e94124 100644 --- a/native/src/sepolicy/statement.rs +++ b/native/src/sepolicy/statement.rs @@ -436,6 +436,9 @@ fn extract_token<'a>(s: &'a str, tokens: &mut Vec>) { fn tokenize_statement(statement: &str) -> Vec { let mut tokens = Vec::new(); for s in statement.split_whitespace() { + if s.starts_with('#') { + break; + } extract_token(s, &mut tokens); } tokens