Review Request 114746: [calculator runner] Replace regexp with explicit character category check

Commit Hook null at kde.org
Wed Jan 1 17:03:01 UTC 2014


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/114746/#review46554
-----------------------------------------------------------


This review has been submitted with commit efbfaf681cd49994858b364155cd2b42a5c6d963 by Christoph Feck to branch KDE/4.11.

- Commit Hook


On Dec. 31, 2013, 3:06 a.m., Christoph Feck wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/114746/
> -----------------------------------------------------------
> 
> (Updated Dec. 31, 2013, 3:06 a.m.)
> 
> 
> Review request for Plasma.
> 
> 
> Bugs: 321803
>     http://bugs.kde.org/show_bug.cgi?id=321803
> 
> 
> Repository: kde-workspace
> 
> 
> Description
> -------
> 
> The current calculator krunner checks for textual input using a simple [a-zA-Z] regexp, which is going to fail for non-latin letters. Instead of increasing regexp complexity, I simply use the QChar category functions to check for letters.
> 
> Additionally, any input non consisting of at least a single digit requires the leading or trailing '=' sign, to avoid matches on pure symbol input, such as "(!)" or whatever.
> 
> 
> Diffs
> -----
> 
>   plasma/generic/runners/calculator/calculatorrunner.h 3a031e0 
>   plasma/generic/runners/calculator/calculatorrunner.cpp 8d00449 
> 
> Diff: https://git.reviewboard.kde.org/r/114746/diff/
> 
> 
> Testing
> -------
> 
> 
> Thanks,
> 
> Christoph Feck
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20140101/6356a992/attachment.html>


More information about the Plasma-devel mailing list