File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed
src/main/kotlin/kscript/app Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -144,7 +144,7 @@ private fun String.extractAnnotParams(): List<String> {
144144 }
145145
146146 // fail if any argument is a comma separated list of artifacts (see #101)
147- annotationArgs.filter { it.contains(' , ' ) }.let {
147+ annotationArgs.filter { it.contains(" ,[^)] " .toRegex() ) }.let {
148148 errorIf(it.isNotEmpty()) {
149149 " Artifact locators must be provided as separate annotation arguments and not as comma-separated list: " + it
150150 }
Original file line number Diff line number Diff line change 11#! / usr/ bin/ env kscript
22
3-
4- @file:DependsOn(" log4j:log4j:1.2+" )
5- // DEPS com.offbytwo:docopt:0.6.0.+
6- // neither should having comments after declartions
3+ @file:DependsOn(" log4j:log4j:[1.2,)" )
4+ @file:DependsOn(" com.offbytwo:docopt:[0.6,)" )
75
86// some pointless comment
97
You can’t perform that action at this time.
0 commit comments