SonarQube rule S1451 "Copyright and license headers should be defined" - no regex for JavaScript
<p>Our project uses both Java and JavaScript, for Java we have configured this rule to use a regular expression so that we don't have to hard-code copyright dates.</p>

<p>However, when activating the rule for JavaScript the configuration does not have the "isRegularExpression" configuration so it doesn't seem I can do the same here. </p>

<p>The rule appears to only allow static text and what's more appears to required the whole header (from start of header comment to end). I think this is so because I tried a workaround of settign the text to look for to...</p>

<pre><code>  /**
    * Copyright (c)
</code></pre>

<p>(stopping short of the dates) but that did not work.
Does anyone know a workaround for this?</p>