Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1.0.53 #58

Merged
merged 3 commits into from
Mar 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,18 +76,18 @@ Maven:
<dependency>
<groupId>com.simiacryptus</groupId>
<artifactId>skyenet-webui</artifactId>
<version>1.0.52</version>
<version>1.0.53</version>
</dependency>
```

Gradle:

```groovy
implementation group: 'com.simiacryptus', name: 'skyenet', version: '1.0.52'
implementation group: 'com.simiacryptus', name: 'skyenet', version: '1.0.53'
```

```kotlin
implementation("com.simiacryptus:skyenet:1.0.52")
implementation("com.simiacryptus:skyenet:1.0.53")
```

### 🌟 To Use
Expand Down
2 changes: 1 addition & 1 deletion core/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ val jackson_version = "2.15.3"

dependencies {

implementation(group = "com.simiacryptus", name = "jo-penai", version = "1.0.48")
implementation(group = "com.simiacryptus", name = "jo-penai", version = "1.0.49")

implementation(group = "org.slf4j", name = "slf4j-api", version = "2.0.9")
implementation(group = "commons-io", name = "commons-io", version = "2.15.0")
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Gradle Releases -> https://github.com/gradle/gradle/releases
libraryGroup = com.simiacryptus.skyenet
libraryVersion = 1.0.52
libraryVersion = 1.0.53
gradleVersion = 7.6.1
2 changes: 1 addition & 1 deletion webui/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ val jetty_version = "11.0.18"
val jackson_version = "2.15.3"
dependencies {

implementation(group = "com.simiacryptus", name = "jo-penai", version = "1.0.48")
implementation(group = "com.simiacryptus", name = "jo-penai", version = "1.0.49")

implementation(project(":core"))
implementation(project(":kotlin"))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -169,12 +169,13 @@ fun SocketManagerBase.addSaveLinks(
response: String,
handle: (String, String) -> Unit
): String {
val diffPattern = """(?s)(?<![^\n])#+\s*([^\n]+)(?:[^`]+`?)*\n(```.*?\n```)""".toRegex() // capture filename
val diffPattern = """(?s)(?<![^\n])#+\s*([^\n]+)(?:[^`]+`?)*\n```[^\n]*\n(.*?)```""".toRegex() // capture filename
val matches = diffPattern.findAll(response).distinct()
val withLinks = matches.fold(response) { markdown, diffBlock ->
val filename = diffBlock.groupValues[1]
// val language = diffBlock.groupValues[2]
val codeValue = diffBlock.groupValues[2]
val hrefLink = hrefLink("Apply Diff") {
val hrefLink = hrefLink("Save File") {
try {
handle(filename, codeValue)
send(SocketManagerBase.divInitializer(cancelable = false) + """<div class="user-message">Saved ${filename}</div>""")
Expand Down
Loading
Loading