Understanding lexical grammar for multi-line comments in JavaCC

I’m struggling to understand why this piece of lexical grammar works for multi-line comments in JavaCC (posted here):

 "/*" (~["*"])* "*" (~["*","/"] (~["*"])* "*" | "*")* "/" 

As I read it, the parser scans the input /*, and then zero or more optional occurrences of * can appear, followed by a *, and then zero or more optional occurrences of * and /, then zero or more occurrences of * followed by * or *, ended by a /. Specifically, this part boggles my mind:

 (~["*","/"] (~["*"])* "*" | "*")* 

I’d appreciate some help understanding this.

Smooth animations for multiline text

This is basically what I’m trying to achieve: https://www.plasticbcn.com/about

I have searched around a lot on the wonderful webb and tried a few Javascript and CSS animation libraries, AOS, animate.css, Velocity.js, without any luck.

I have tried to recreate the animation here – https://taylerd2.herokuapp.com/webb/

As you might notice however the animations used here with AOS seems a bit clunky.

Would be tremendously appreciative if someone could point me in the right direction to a library or show some code examples of these kinds of animations! 🙂

EDGE processing of Multiline Rich Text URLs in JQuery

I am having difficulties setting up URL values within a list Multiline Rich Text field. The code I am using is as follows:

      ThisList = "TK0001 TK0002 TK0003 TK0004"       TaskArray = ThisList.split(" ");       var AssocHTML = '';       for (i = 0; i < TaskArray.length; i++) {                AssocHTML = AssocHTML + '<a href="https://oursites<snip>/Lists/TestList/DispForm.aspx?ID='+TaskArray[i].substr(j+2) + '&RootFolder=%2A">'+TaskArray[i]+'</a> ';                           };       $  ('nobr:contains("Task List")').closest('tr').find('div.ms-rtestate-write').html(AssocHTML);                           }; 

If I run this code using IE, the field is populated correctly

"<a href="https://oursites<snip>/Lists/TestList/DispForm.aspx?ID=0001&RootFolder=%2A">TK0001</a> <a href="https://oursites<snip>/Lists/TestList/DispForm.aspx?ID=0002&RootFolder=%2A">TK0002</a> <a href="https://oursites<snip>/Lists/TestList/DispForm.aspx?ID=0003&RootFolder=%2A">TK0003</a> <a href="https://oursites<snip>/Lists/TestList/DispForm.aspx?ID=0004&RootFolder=%2A">TK0004</a>" 

However, if I run this same code under EDGE, the following value is populated into that field

"<a href="/Lists/TestList/DispForm.aspx?ID=0001&RootFolder=%2A">TK0001</a> <a href="/Lists/TestList/DispForm.aspx?ID=0002&RootFolder=%2A">TK0002</a> <a href="/Lists/TestList/DispForm.aspx?ID=0003&RootFolder=%2A">TK0003</a> <a>TK0004</a>" 

The URL is modified (fair enough) but the last value is always corrupted.

How do I stop EDGE applying field edits, or is there some encoding that I need to apply to the AssocHTML value to stop EDGE reevaluating the value?

How to get all versions of a multi-line text field in a workflow

I have a custom list with versioning which contains a multi-line text field with append. In any workflow (insert, update triggered…) i cannot read the content of that field (always blank) although i can see the field updated and the versions created. How can i read the content of this field from the last version or any version in a workflow? If we have a solution OOTB i would appreciate..

Nuno

REST API return encoded Multiline Textfield but show it correctly

I save a JSON string in my SharePoint list. This looks like:

{"columns":[{"name":"A","visible":true,"width":200,"sort":{},"filters":[{}],"pinned":"left"},{"name":"B","visible":false,"width":150,"sort":{},"filters":[{}],"pinned":""},{"name":"C","visible":true,"width":200,"sort":{},"filters":[{}],"pinned":""},{"name":"D","visible":true,"width":200,"sort":{},"filters":[{}],"pinned":""}],"scrollFocus":{},"selection":[],"grouping":{},"treeView":{}} 

But if I request it from the SharePoint I get:

{   "d": {     "results": [       {         "__metadata": {           "id": "Web/Lists(guid'78e7e9bc-d85f-4c18-8aeb-213a68b28154')/Items(1)",           "uri": "http://sharepoint2013/sites/acme/demo/_api/Web/Lists(guid'78e7e9bc-d85f-4c18-8aeb-213a68b28154')/Items(1)",           "etag": "\"1\"",           "type": "SP.Data.SettingsListItem"         },         "Configuration": "<div class=\"ExternalClass41AB4CF73C1C4DCB82C4F0B8CCCBC7AE\">&#123;&quot;columns&quot;&#58;[&#123;&quot;name&quot;&#58;&quot;A&quot;,&quot;visible&quot;&#58;true,&quot;width&quot;&#58;200,&quot;sort&quot;&#58;&#123;&#125;,&quot;filters&quot;&#58;[&#123;&#125;],&quot;pinned&quot;&#58;&quot;left&quot;&#125;,&#123;&quot;name&quot;&#58;&quot;B&quot;,&quot;visible&quot;&#58;false,&quot;width&quot;&#58;150,&quot;sort&quot;&#58;&#123;&#125;,&quot;filters&quot;&#58;[&#123;&#125;],&quot;pinned&quot;&#58;&quot;&quot;&#125;,&#123;&quot;name&quot;&#58;&quot;C&quot;,&quot;visible&quot;&#58;true,&quot;width&quot;&#58;200,&quot;sort&quot;&#58;&#123;&#125;,&quot;filters&quot;&#58;[&#123;&#125;],&quot;pinned&quot;&#58;&quot;&quot;&#125;,&#123;&quot;name&quot;&#58;&quot;D&quot;,&quot;visible&quot;&#58;true,&quot;width&quot;&#58;200,&quot;sort&quot;&#58;&#123;&#125;,&quot;filters&quot;&#58;[&#123;&#125;],&quot;pinned&quot;&#58;&quot;&quot;&#125;],&quot;scrollFocus&quot;&#58;&#123;&#125;,&quot;selection&quot;&#58;[],&quot;grouping&quot;&#58;&#123;&#125;,&quot;treeView&quot;&#58;&#123;&#125;&#125;</div>"       }     ]   } } 

So why? The SharePoint show it correct… So why the REST API must encode it? -.-

enter image description here

Thank you in Advance for any ideas!

Performing multiline xss

I am playing one pentesting game theres a task where i need to perform multi line xss to print cookies.

I was able to make xss that print “x” because one line is too short for entire command so this works "><script>alert("x")</script>( this is max length of field and we have three fields available)

But i need to use this "><script>alert(document.cookie)</script> and dont know how to modify it for three fields that i have for this task.

Thanks for any help