2
0
mirror of https://github.com/boostorg/build.git synced 2026-02-14 00:32:11 +00:00

Adjust regex to improve performance.

[SVN r83821]
This commit is contained in:
Steven Watanabe
2013-04-09 19:25:12 +00:00
parent 8f05c609dc
commit f7ca478bdd

View File

@@ -137,7 +137,7 @@ LIST * headers1( LIST * l, OBJECT * file, int rec, regexp * re[] )
if ( re_macros == 0 )
{
OBJECT * const re_str = object_new(
"^[ ]*#[ ]*include[ ]*([A-Za-z][A-Za-z0-9_]*).*$" );
"#[ \t]*include[ \t]*([A-Za-z][A-Za-z0-9_]*).*$" );
re_macros = regex_compile( re_str );
object_free( re_str );
}