mirror of
https://github.com/jbeder/yaml-cpp.git
synced 2025-10-27 14:31:20 +00:00
Avoid static reference to temporary
These caused issues when used in a wasm project.
This commit is contained in:
committed by
Jesse Beder
parent
76dc671573
commit
1d8ca1f35e
@@ -173,11 +173,11 @@ bool IsValidPlainScalar(const std::string& str, FlowType::value flowType,
|
|||||||
}
|
}
|
||||||
|
|
||||||
// then check until something is disallowed
|
// then check until something is disallowed
|
||||||
static const RegEx& disallowed_flow =
|
static const RegEx disallowed_flow =
|
||||||
Exp::EndScalarInFlow() | (Exp::BlankOrBreak() + Exp::Comment()) |
|
Exp::EndScalarInFlow() | (Exp::BlankOrBreak() + Exp::Comment()) |
|
||||||
Exp::NotPrintable() | Exp::Utf8_ByteOrderMark() | Exp::Break() |
|
Exp::NotPrintable() | Exp::Utf8_ByteOrderMark() | Exp::Break() |
|
||||||
Exp::Tab() | Exp::Ampersand();
|
Exp::Tab() | Exp::Ampersand();
|
||||||
static const RegEx& disallowed_block =
|
static const RegEx disallowed_block =
|
||||||
Exp::EndScalar() | (Exp::BlankOrBreak() + Exp::Comment()) |
|
Exp::EndScalar() | (Exp::BlankOrBreak() + Exp::Comment()) |
|
||||||
Exp::NotPrintable() | Exp::Utf8_ByteOrderMark() | Exp::Break() |
|
Exp::NotPrintable() | Exp::Utf8_ByteOrderMark() | Exp::Break() |
|
||||||
Exp::Tab() | Exp::Ampersand();
|
Exp::Tab() | Exp::Ampersand();
|
||||||
|
|||||||
Reference in New Issue
Block a user