D17998: test to fix cpp indenter

Christoph Cullmann noreply at phabricator.kde.org
Sat Jan 5 20:32:00 GMT 2019


cullmann added reviewers: carewolf, Frameworks.
cullmann added a comment.


  Hi ;=)
  
  I have some dumb javascript / QJSEngine question:
  
  With Qt 5.12, the regex above
  
  var r = /^(\s*)(([\)\]}]?\s*)*([\)\]]\s*))?;/.exec(prevString);
  
  executes successfully on a "prevString" containing
  
  '                ok'
  
  I am a bit confused, why.
  The ";" at the end of the regex is not optional, why do I get a non-null r?
  Funny enough, the full capture r[0] is empty.

REPOSITORY
  R39 KTextEditor

REVISION DETAIL
  https://phabricator.kde.org/D17998

To: cullmann, dhaumann, carewolf, #frameworks
Cc: kwrite-devel, kde-frameworks-devel, hase, michaelh, ngraham, bruns, demsking, cullmann, sars, dhaumann
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kwrite-devel/attachments/20190105/51caa052/attachment-0001.html>


More information about the KWrite-Devel mailing list