Skip to content

Commit

Permalink
Doc: Enclose regular expressions with \badcode
Browse files Browse the repository at this point in the history
Without them, qdoc tries to parse the backslashes as qdoc commands:

src/quick/util/qquickvalidator.cpp:231: warning: Unknown command '\d'

Change-Id: I36322586c477822f7efbae8b80adaee177c7ca44
Reviewed-by: Venugopal Shivashankar <Venugopal.Shivashankar@qt.io>
  • Loading branch information
toreinio committed Jun 16, 2017
1 parent b66bc39 commit 3fc212f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/quick/util/qquickvalidator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -228,9 +228,15 @@ void QQuickDoubleValidator::resetLocaleName()
\list
\li A list of numbers with one to three positions separated by a comma:
\badcode
/\d{1,3}(?:,\d{1,3})+$/
\endcode
\li An amount consisting of up to 3 numbers before the decimal point, and
1 to 2 after the decimal point: \li /(\d{1,3})([.,]\d{1,2})?$/
1 to 2 after the decimal point:
\badcode
/(\d{1,3})([.,]\d{1,2})?$/
\endcode
\endlist
*/

Expand Down

0 comments on commit 3fc212f

Please sign in to comment.