You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I notice issue 296, and add anchors on regex. Though it's stupid because it definitely won't split anything, it may be expected to be an empty range instead of an infinite loop.
#include<iostream>
#include<ctre.hpp>intmain() {
std::string data = "a\n\nb\n";
auto lines = ctre::split<"^\n$">(data);
for (auto line: lines) {
auto t = line.to_string();
std::cout << ">" << t << "<" << std::endl;
}
}
The text was updated successfully, but these errors were encountered:
Extra-Creativity
changed the title
Non-ending split for anchor
Non-ending split for adding anchors.
Oct 14, 2023
I notice issue 296, and add anchors on regex. Though it's stupid because it definitely won't split anything, it may be expected to be an empty range instead of an infinite loop.
The text was updated successfully, but these errors were encountered: