mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-10-11 11:07:07 +00:00
improve wordBoundaryRegex to recognize numbers
This commit is contained in:
1 parent
c13a0c1c26
commit
17eb6e47eb
1 file changed
+1
-1
@@ -1795,7 +1795,7 @@ var kDelegateRespondsTo_textShouldBeginEditing
|
||||
|
||||
+ (JSObject)_wordBoundaryRegex
|
||||
{
|
||||
return /^.[^-\.,+#'"!§$%&/\(<\[\]>\)=?`´*\s{}\|¶]/m;
|
||||
return /(^[0-9][\.,])|(^.[^-\.,+#'"!§$%&/\(<\[\]>\)=?`´*\s{}\|¶])/m;
|
||||
}
|
||||
|
||||
+ (JSObject)_paragraphBoundaryRegex
|
||||
|
||||
Reference in new issue
Block a user