In JavaScript code, that regexp stops reading immediately it found * without checking */ or end of line, etc..
Because that regexp accepts these as the end of the directive:
**
*/
Nothing
That regexp accepts "Nothing". And * as the parameters is not accepted.
Issue: https://github.com/jsoverson/preprocess/issues/77#issuecomment-120682188
In JavaScript code, that regexp stops reading immediately it found
*
without checking*/
or end of line, etc.. Because that regexp accepts these as the end of the directive:**
*/
That regexp accepts "Nothing". And
*
as the parameters is not accepted.For example:
Result:
This PR fixes this bug, and puts common patterns into the variables.