Fossil SCM
Patched re_space_char() to conform to its docs (now recognizes \r as a space).
Commit
c77995e6507331e47ad1467d24bd9231891a252f
Parent
46af6b826085024…
1 file changed
+1
-1
+1
-1
| --- src/regexp.c | ||
| +++ src/regexp.c | ||
| @@ -172,11 +172,11 @@ | ||
| 172 | 172 | return (c>='0' && c<='9'); |
| 173 | 173 | } |
| 174 | 174 | |
| 175 | 175 | /* Return true if c is a perl "space" character: [ \t\r\n\v\f] */ |
| 176 | 176 | static int re_space_char(int c){ |
| 177 | - return c==' ' || c=='\t' || c=='\n' || c=='\v' || c=='\f'; | |
| 177 | + return c==' ' || c=='\t' || c=='\n' || c=='\r' || c=='\v' || c=='\f' ; | |
| 178 | 178 | } |
| 179 | 179 | |
| 180 | 180 | /* Run a compiled regular expression on the zero-terminated input |
| 181 | 181 | ** string zIn[]. Return true on a match and false if there is no match. |
| 182 | 182 | */ |
| 183 | 183 |
| --- src/regexp.c | |
| +++ src/regexp.c | |
| @@ -172,11 +172,11 @@ | |
| 172 | return (c>='0' && c<='9'); |
| 173 | } |
| 174 | |
| 175 | /* Return true if c is a perl "space" character: [ \t\r\n\v\f] */ |
| 176 | static int re_space_char(int c){ |
| 177 | return c==' ' || c=='\t' || c=='\n' || c=='\v' || c=='\f'; |
| 178 | } |
| 179 | |
| 180 | /* Run a compiled regular expression on the zero-terminated input |
| 181 | ** string zIn[]. Return true on a match and false if there is no match. |
| 182 | */ |
| 183 |
| --- src/regexp.c | |
| +++ src/regexp.c | |
| @@ -172,11 +172,11 @@ | |
| 172 | return (c>='0' && c<='9'); |
| 173 | } |
| 174 | |
| 175 | /* Return true if c is a perl "space" character: [ \t\r\n\v\f] */ |
| 176 | static int re_space_char(int c){ |
| 177 | return c==' ' || c=='\t' || c=='\n' || c=='\r' || c=='\v' || c=='\f' ; |
| 178 | } |
| 179 | |
| 180 | /* Run a compiled regular expression on the zero-terminated input |
| 181 | ** string zIn[]. Return true on a match and false if there is no match. |
| 182 | */ |
| 183 |