mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-08-28 06:27:02 +00:00
Merge pull request #2505 from HTPC-Schrauber/fix-RegEx
Fixed: RegEx for gcc > 4.9
This commit is contained in:
@@ -1899,18 +1899,18 @@ var kDelegateRespondsTo_textShouldBeginEditing
|
||||
|
||||
+ (JSObject)_wordBoundaryRegex
|
||||
{
|
||||
return /(^[0-9][\.,])|(^.[^-\.,+#'"!§$%&/\(<\[\]>\)=?`´*\s{}\|¶])/m;
|
||||
return new RegExp("(^[0-9][\\.,])|(^.[^-\\.,+#'\"!§$%&/\\(<\\[\\]>\\)=?`´*\\s{}\\|¶])", "m");
|
||||
}
|
||||
|
||||
+ (JSObject)_paragraphBoundaryRegex
|
||||
{
|
||||
return /^.[^\n\r]/m;
|
||||
return new RegExp("^.[^\\n\\r]", "m");
|
||||
}
|
||||
|
||||
+ (JSObject)_whitespaceRegex
|
||||
{
|
||||
// do not include \n here or we will get cross paragraph selections
|
||||
return /^.[ \t]+/m;
|
||||
return new RegExp("^.[ \\t]+", "m");
|
||||
}
|
||||
|
||||
- (CPRange)_characterRangeForIndex:(unsigned)index asDefinedByRegex:(JSObject)regex
|
||||
|
||||
Reference in New Issue
Block a user