Colon-Config

 view release on metacpan or  search on metacpan

t/comment-in-value.t  view on Meta::CPAN

# --- Real-world patterns with '#' in values ---

{
    is Colon::Config::read("color:#ff0000\n"), [ color => '#ff0000' ],
        "CSS hex color in value is preserved";
}

{
    is Colon::Config::read("url:http://example.com/#anchor\n"),
        [ url => 'http://example.com/#anchor' ],
        "URL fragment (#anchor) in value is preserved";
}

{
    is Colon::Config::read("channel:#general\n"), [ channel => '#general' ],
        "channel name with '#' prefix is preserved";
}

# --- Mixed: comments and values with '#' in the same input ---

{



( run in 2.283 seconds using v1.01-cache-2.11-cpan-364913b4093 )