Skip to content

Commit f83d65e

Browse files
authored
Merge pull request #60 from eclipse-thingweb/regex
Fix issue with regex in Android
2 parents 10c8bf0 + d293ac2 commit f83d65e

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

kotlin-wot/src/main/kotlin/thing/UriTemplate.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class UriTemplate(private val template: String) {
2929

3030
// Handle any remaining unresolved placeholders, for example, if a placeholder is missing a value.
3131
// For this example, let's throw an exception if we have unresolved placeholders
32-
val remainingPlaceholders = Pattern.compile("\\{([a-zA-Z0-9_]+)}")
32+
val remainingPlaceholders = Pattern.compile("\\{([a-zA-Z0-9_]+)\\}")
3333
.matcher(expandedUri)
3434

3535
if (remainingPlaceholders.find()) {

kotlin-wot/src/main/kotlin/thing/form/AugmentedForm.kt

-2
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@ data class AugmentedForm(
2727
private val log = LoggerFactory.getLogger(AugmentedForm::class.java)
2828
}
2929

30-
31-
3230
@get:JsonIgnore
3331
val hrefScheme: String?
3432
get() = try {

0 commit comments

Comments
 (0)