镜像来自
				https://github.com/quitesimpleorg/qsmaddy.git
				synced 2025-10-31 17:29:29 +01:00 
			
		
		
		
	italicparser: Parse(): Add static keyword to regex
In line with the other parsers, add the static keyword to the regex.
This commit is contained in:
		| @@ -39,7 +39,7 @@ public: | ||||
|   void | ||||
|   Parse(std::string& line) override | ||||
|   { | ||||
|     std::regex re("(?!.*`.*|.*<code>.*)\\*(?!.*`.*|.*<\\/code>.*)([^\\*]*)\\*(?!.*`.*|.*<\\/code>.*)"); | ||||
|     static std::regex re("(?!.*`.*|.*<code>.*)\\*(?!.*`.*|.*<\\/code>.*)([^\\*]*)\\*(?!.*`.*|.*<\\/code>.*)"); | ||||
|     static std::string replacement = "<i>$1</i>"; | ||||
|     line = std::regex_replace(line, re, replacement); | ||||
|   } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user