mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-10-11 11:07:07 +00:00
formatting
This commit is contained in:
1 parent
33b7c726f6
commit
c628ea34b7
1 file changed
+4
-3
@@ -1793,17 +1793,17 @@ var kDelegateRespondsTo_textShouldBeginEditing
|
||||
return characterSet.exec(_characterTripletFromStringAtIndex([_textStorage string], index)) !== null;
|
||||
}
|
||||
|
||||
+ (JSRegEx)_wordBoundaryRegex
|
||||
+ (JSObject)_wordBoundaryRegex
|
||||
{
|
||||
return /^.[^-\.,+#'"!§$%&/\(<\[\]>\)=?`´*\s{}\|¶]/m;
|
||||
}
|
||||
|
||||
+ (JSRegEx)_paragraphBoundaryRegex
|
||||
+ (JSObject)_paragraphBoundaryRegex
|
||||
{
|
||||
return /^.[\n\r]/m;
|
||||
}
|
||||
|
||||
+ (JSRegEx)_whitespaceRegex
|
||||
+ (JSObject)_whitespaceRegex
|
||||
{
|
||||
return /^.[ \t]+/m;
|
||||
}
|
||||
@@ -1873,6 +1873,7 @@ var kDelegateRespondsTo_textShouldBeginEditing
|
||||
return proposedRange;
|
||||
}
|
||||
|
||||
// triple click right in last line of a paragraph-> select this paragraph completely
|
||||
if (loc > 0 && _isNewlineCharacter([string characterAtIndex:loc]))
|
||||
loc--;
|
||||
|
||||
|
||||
Reference in new issue
Block a user