Skip to content

Commit

Permalink
Merge pull request #247 from alexarchambault/topic/properties-special…
Browse files Browse the repository at this point in the history
…-characters

Don't restrict Maven property name characters too much
  • Loading branch information
alexarchambault committed May 10, 2016
2 parents 95d6d9e + b7ba8d9 commit bb77e85
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion core/shared/src/main/scala/coursier/core/Resolution.scala
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ object Resolution {
}

val propRegex = (
quote("${") + "([a-zA-Z0-9-.]*)" + quote("}")
quote("${") + "([^" + quote("{}") + "]*)" + quote("}")
).r

def substituteProps(s: String, properties: Map[String, String]) = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ object ResolutionTests extends TestSuite {

Project(Module("acme", "play"), "2.4.1",
dependencies = Seq(
"" -> Dependency(Module("acme", "play-json"), "${playJsonVersion}"),
"" -> Dependency(Module("${project.groupId}", "${configName}"), "1.3.0")),
"" -> Dependency(Module("acme", "play-json"), "${play_json_version}"),
"" -> Dependency(Module("${project.groupId}", "${WithSpecialChar©}"), "1.3.0")),
properties = Seq(
"playJsonVersion" -> "2.4.0",
"configName" -> "config")),
"play_json_version" -> "2.4.0",
"WithSpecialChar©" -> "config")),

Project(Module("acme", "play-extra-no-config"), "2.4.1",
Seq(
Expand Down

0 comments on commit bb77e85

Please sign in to comment.