mirror of
				https://github.com/TES3MP/openmw-tes3mp.git
				synced 2025-11-04 05:56:41 +00:00 
			
		
		
		
	Fixed escaping @ in boost program options filter
This commit is contained in:
		
							parent
							
								
									dc016059c3
								
							
						
					
					
						commit
						92aaff3b78
					
				
					 2 changed files with 8 additions and 1 deletions
				
			
		| 
						 | 
					@ -27,7 +27,8 @@ namespace Files
 | 
				
			||||||
    std::string EscapeHashString::processString(const std::string & str)
 | 
					    std::string EscapeHashString::processString(const std::string & str)
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        std::string temp = boost::replace_all_copy<std::string>(str, std::string() + (char)escape_hash_filter::sEscape + (char)escape_hash_filter::sHashIdentifier, "#");
 | 
					        std::string temp = boost::replace_all_copy<std::string>(str, std::string() + (char)escape_hash_filter::sEscape + (char)escape_hash_filter::sHashIdentifier, "#");
 | 
				
			||||||
        boost::replace_all(temp, std::string() + (char)escape_hash_filter::sEscape + (char)escape_hash_filter::sEscapeIdentifier, std::string((char)escape_hash_filter::sEscape, 1));
 | 
					        auto format = std::string(1, (char)escape_hash_filter::sEscape);
 | 
				
			||||||
 | 
					        boost::replace_all(temp, std::string() + (char)escape_hash_filter::sEscape + (char)escape_hash_filter::sEscapeIdentifier, format);
 | 
				
			||||||
        return temp;
 | 
					        return temp;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -78,6 +78,12 @@ namespace Files
 | 
				
			||||||
                    mFinishLine = true;
 | 
					                    mFinishLine = true;
 | 
				
			||||||
                }
 | 
					                }
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
 | 
					            else if (character == sEscape)
 | 
				
			||||||
 | 
					            {
 | 
				
			||||||
 | 
					                mNext.push(sEscape);
 | 
				
			||||||
 | 
					                mNext.push(sEscapeIdentifier);
 | 
				
			||||||
 | 
					                record = false;
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
            else if (mPrevious == sEscape)
 | 
					            else if (mPrevious == sEscape)
 | 
				
			||||||
            {
 | 
					            {
 | 
				
			||||||
                mNext.push(sEscape);
 | 
					                mNext.push(sEscape);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue