git.ithinksw.org
/
GrowlITTSW.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
db492e3
)
Fixed word wrap regular expression.
author
Joseph Spiros
<joseph.spiros@ithinksw.com>
Mon, 2 Mar 2009 06:13:48 +0000
(
01:13
-0500)
committer
Joseph Spiros
<joseph.spiros@ithinksw.com>
Mon, 2 Mar 2009 06:13:48 +0000
(
01:13
-0500)
GrowlITTSWController.m
patch
|
blob
|
history
diff --git
a/GrowlITTSWController.m
b/GrowlITTSWController.m
index
b5c762b
..
1cd4265
100644
(file)
--- a/
GrowlITTSWController.m
+++ b/
GrowlITTSWController.m
@@
-132,7
+132,7
@@
}
if (_wrapNotifications) {
- text = [text stringByReplacingOccurrencesOfRegex:[NSString stringWithFormat:@"(
.{1,%i})(?: +|$)\\n?|(.{%i})", _wrapColumns, _wrapColumns] withString:@"$1$2
\n"];
+ text = [text stringByReplacingOccurrencesOfRegex:[NSString stringWithFormat:@"(
\\S\\S{%i,}|.{1,%i})(?:\\s+|$)", _wrapColumns, _wrapColumns] withString:@"$1
\n"];
}
//trim trailing whitespace